-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #489 from NataKilar/exterior-stopgap-fix
Stopgap exterior turf load fix
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// TODO: Solve this issue properly | ||
// On load, we check turfs which have been marked for update and cull any which are outside. What's likely happening is they're being marked for update before | ||
// all z-levels are initialized, but it will take some time to track this down | ||
/datum/controller/subsystem/air/proc/cull_updated_turfs() | ||
|
||
var/list/new_tiles_to_update = list() | ||
|
||
var/list/curr_tiles = tiles_to_update | ||
for(var/turf/T as anything in curr_tiles) | ||
if(SHOULD_PARTICIPATE_IN_ZONES(T)) | ||
new_tiles_to_update += T | ||
|
||
tiles_to_update.Cut() | ||
tiles_to_update = new_tiles_to_update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters