moves all api logic inside PlayerView, found weird bug in unpack_gold_value (floating error)

This commit is contained in:
artus committed 2019-10-18 16:21:00 +02:00
1 parent 3fce1dc7d0
commit 61c9a4e6d4
7 files changed
+78 -48

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ pub fn execute(
response.push_update(Update::Wealth(
db::AsPlayer(conn, id).update_wealth(amount)?,
));
response.notify(format!("Money updated !"));
response.notify(format!("Mis à jour ({}po)!", amount));
}
ApiActions::BuyItems(id, params) => {
let mut cumulated_diff: Vec<db::Wealth> = Vec::with_capacity(params.len());