added an update rate setting

This commit is contained in:
Monica Moniot
2022-11-29 20:40:07 -05:00
parent 4444053f7c
commit 8030a462b3
7 changed files with 22 additions and 2 deletions

View File

@@ -500,7 +500,7 @@ function tick(map_data, mod_settings)
end
if map_data.tick_state == STATE_POLL_STATIONS then
for i = 1, 2 do
for i = 1, mod_settings.update_rate do
if tick_poll_station(map_data, mod_settings) then break end
end
elseif map_data.tick_state == STATE_DISPATCH then