From: Perttu Ahola Date: Thu, 26 Jul 2012 23:37:04 +0000 (+0300) Subject: Properly rollback chat command triggered things X-Git-Tag: 0.4.2-rc1~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f7dc72f8aacddea66312a38cb47cd5e928cebb5d;p=oweals%2Fminetest.git Properly rollback chat command triggered things --- 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());