mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +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,7 +498,12 @@ class Game_Map
|
||||||
end
|
end
|
||||||
# Update map event
|
# Update map event
|
||||||
for event in @events.values
|
for event in @events.values
|
||||||
event.update
|
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
|
end
|
||||||
# Update common event
|
# Update common event
|
||||||
for common_event in @common_events.values
|
for common_event in @common_events.values
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue