Reset rewinding manager at each online or offline game

This commit is contained in:
Benau 2018-07-24 14:18:43 +08:00
parent 973b29980d
commit 6369256022
2 changed files with 1 additions and 4 deletions

View File

@ -120,7 +120,7 @@ World* World::m_world = NULL;
*/
World::World() : WorldStatus()
{
RewindManager::setEnable(NetworkConfig::get()->isNetworking());
#ifdef DEBUG
m_magic_number = 0xB01D6543;
#endif

View File

@ -28,7 +28,6 @@
#include "network/protocols/game_protocol.hpp"
#include "network/protocols/game_events_protocol.hpp"
#include "network/race_event_manager.hpp"
#include "network/rewind_manager.hpp"
#include "race/race_manager.hpp"
#include "states_screens/state_manager.hpp"
@ -59,8 +58,6 @@ LobbyProtocol::~LobbyProtocol()
void LobbyProtocol::loadWorld()
{
Log::info("LobbyProtocol", "Ready !");
RewindManager::setEnable(true);
// Race startup sequence
// ---------------------
// This creates the network world.