There are two callers for wall_close_door_num. The editor calls it in a loop for all doors, so copying each active_door is wasteful since none will survive the end of the loop. Move the copy loop into the caller that removes elements selectively. This makes no attempt to fix the bugs associated with changing Num_open_doors while iterating with Num_open_doors as an upper bound. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |