mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
More anti-lag changes
This commit is contained in:
parent
355b2d8528
commit
07f2d5d6fa
1 changed files with 6 additions and 1 deletions
|
|
@ -498,8 +498,13 @@ class Game_Map
|
|||
end
|
||||
# Update map event
|
||||
for event in @events.values
|
||||
if (event.list != nil && event.list.size > 1) || (event.x * 128 > $game_map.display_x - (10 * 128)) &&
|
||||
(event.x * 128 < $game_map.display_x + (30 * 128)) &&
|
||||
(event.y * 128 > ($game_map.display_y) - (10 * 128) &&
|
||||
(event.y * 128 < ($game_map.display_y) + (27 * 128)))
|
||||
event.update
|
||||
end
|
||||
end
|
||||
# Update common event
|
||||
for common_event in @common_events.values
|
||||
common_event.update
|
||||
|
|
|
|||
Loading…
Reference in a new issue