diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-07-27 02:37:04 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-27 02:37:04 +0300 |
commit | f7dc72f8aacddea66312a38cb47cd5e928cebb5d (patch) | |
tree | 2a6607d2033a5c6a50f377f7559f06af45b35b81 | |
parent | 0190f9b077dcb2b8cb41c622dd91ffc1e04dacac (diff) | |
download | minetest-f7dc72f8aacddea66312a38cb47cd5e928cebb5d.tar.gz minetest-f7dc72f8aacddea66312a38cb47cd5e928cebb5d.tar.bz2 minetest-f7dc72f8aacddea66312a38cb47cd5e928cebb5d.zip |
Properly rollback chat command triggered things
-rw-r--r-- | src/server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index a868a0425..6a126b60d 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2627,6 +2627,10 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) message += (wchar_t)readU16(buf); } + // If something goes wrong, this player is to blame + RollbackScopeActor rollback_scope(m_rollback, + std::string("player:")+player->getName()); + // Get player name of this client std::wstring name = narrow_to_wide(player->getName()); |