diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-08-12 11:09:38 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-08-12 11:20:36 +0300 |
commit | a9a475ad50ae93c253e0d1eda1f71a42dbc20298 (patch) | |
tree | 0f91644e1766963153948d1e2655f75195e3abb2 | |
parent | d38b465b7c11e5f22632b60b88d65fd1e72282af (diff) | |
download | minetest-a9a475ad50ae93c253e0d1eda1f71a42dbc20298.tar.gz minetest-a9a475ad50ae93c253e0d1eda1f71a42dbc20298.tar.bz2 minetest-a9a475ad50ae93c253e0d1eda1f71a42dbc20298.zip |
Remove unwanted ! from ifs in inventory record-for-rollback code
-rw-r--r-- | src/inventorymanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp index 7fc8c8ce4..424b02b53 100644 --- a/src/inventorymanager.cpp +++ b/src/inventorymanager.cpp @@ -360,7 +360,7 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame IRollbackReportSink *rollback = gamedef->rollback(); // If source is not infinite, record item take - if(!src_can_take_count != -1){ + if(src_can_take_count != -1){ RollbackAction action; std::string loc; { @@ -373,7 +373,7 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame rollback->reportAction(action); } // If destination is not infinite, record item put - if(!dst_can_put_count != -1){ + if(dst_can_put_count != -1){ RollbackAction action; std::string loc; { @@ -633,7 +633,7 @@ void IDropAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame IRollbackReportSink *rollback = gamedef->rollback(); // If source is not infinite, record item take - if(!src_can_take_count != -1){ + if(src_can_take_count != -1){ RollbackAction action; std::string loc; { |