Refresh constraints on map reload

develop
Anuradha Dissanayake 2012-11-11 18:18:54 +13:00
parent b16bbdd6df
commit 6803a83e07
1 changed files with 2 additions and 1 deletions

@ -406,6 +406,7 @@ static void start_protect(color_ostream &out)
out.print("Protecting %d jobs.\n", known_jobs.size()); out.print("Protecting %d jobs.\n", known_jobs.size());
} }
static bool first_update_done = false;
static void init_state(color_ostream &out) static void init_state(color_ostream &out)
{ {
auto pworld = Core::getInstance().getWorld(); auto pworld = Core::getInstance().getWorld();
@ -430,6 +431,7 @@ static void init_state(color_ostream &out)
last_tick_frame_count = world->frame_counter; last_tick_frame_count = world->frame_counter;
last_frame_count = world->frame_counter; last_frame_count = world->frame_counter;
first_update_done = false;
if (!enabled) if (!enabled)
return; return;
@ -437,7 +439,6 @@ static void init_state(color_ostream &out)
start_protect(out); start_protect(out);
} }
static bool first_update_done = false;
static void enable_plugin(color_ostream &out) static void enable_plugin(color_ostream &out)
{ {
auto pworld = Core::getInstance().getWorld(); auto pworld = Core::getInstance().getWorld();