Reset rewinding manager at each online or offline game
This commit is contained in:
parent
973b29980d
commit
6369256022
@ -120,7 +120,7 @@ World* World::m_world = NULL;
|
|||||||
*/
|
*/
|
||||||
World::World() : WorldStatus()
|
World::World() : WorldStatus()
|
||||||
{
|
{
|
||||||
|
RewindManager::setEnable(NetworkConfig::get()->isNetworking());
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
m_magic_number = 0xB01D6543;
|
m_magic_number = 0xB01D6543;
|
||||||
#endif
|
#endif
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include "network/protocols/game_protocol.hpp"
|
#include "network/protocols/game_protocol.hpp"
|
||||||
#include "network/protocols/game_events_protocol.hpp"
|
#include "network/protocols/game_events_protocol.hpp"
|
||||||
#include "network/race_event_manager.hpp"
|
#include "network/race_event_manager.hpp"
|
||||||
#include "network/rewind_manager.hpp"
|
|
||||||
#include "race/race_manager.hpp"
|
#include "race/race_manager.hpp"
|
||||||
#include "states_screens/state_manager.hpp"
|
#include "states_screens/state_manager.hpp"
|
||||||
|
|
||||||
@ -59,8 +58,6 @@ LobbyProtocol::~LobbyProtocol()
|
|||||||
void LobbyProtocol::loadWorld()
|
void LobbyProtocol::loadWorld()
|
||||||
{
|
{
|
||||||
Log::info("LobbyProtocol", "Ready !");
|
Log::info("LobbyProtocol", "Ready !");
|
||||||
RewindManager::setEnable(true);
|
|
||||||
|
|
||||||
// Race startup sequence
|
// Race startup sequence
|
||||||
// ---------------------
|
// ---------------------
|
||||||
// This creates the network world.
|
// This creates the network world.
|
||||||
|
Loading…
Reference in New Issue
Block a user