| 87 | } |
| 88 | |
| 89 | static void remove_stockpile_config(color_ostream& out, int stockpile_number) { |
| 90 | if (!watched_stockpiles.count(stockpile_number)) |
| 91 | return; |
| 92 | DEBUG(control, out).print("removing persistent key for stockpile {}\n", stockpile_number); |
| 93 | World::DeletePersistentData(watched_stockpiles[stockpile_number]); |
| 94 | watched_stockpiles.erase(stockpile_number); |
| 95 | } |
| 96 | |
| 97 | static const int32_t CYCLE_TICKS = 601; |
| 98 | static int32_t cycle_timestamp = 0; // world->frame_counter at last cycle |
no test coverage detected