From: Perttu Ahola Date: Thu, 26 Jul 2012 23:37:04 +0000 (+0300) Subject: Properly rollback chat command triggered things X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=f7dc72f8aacddea66312a38cb47cd5e928cebb5d;p=zefram%2Fminetest%2Fminetest_engine.git Properly rollback chat command triggered things --- diff --git a/src/server.cpp b/src/server.cpp index a868a042..6a126b60 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());