Files
Aurora.3/code/modules/ambient_occlusion/ao_verbs.dm
LordFowl 8d436c4a03 Converts all necessary << outputs into the to_chat() macro. (#6076)
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly;

All << is converted into to_chat().
2019-03-10 23:39:03 +02:00

24 lines
567 B
Plaintext

/client/proc/global_ao_regenerate()
set name = "Regenerate AO (Global)"
set desc = "Regenerates AO caches across the map."
set category = "Debug"
if (!check_rights(R_DEBUG)) return
log_and_message_admins("has triggered a global ambient occlusion rebuild.")
to_chat(usr, "Beginning global AO rebuild.")
SSocclusion.disable()
for (var/turf/T in world) // Yes, in world.
T.ao_neighbors = null // To force a recalc.
T.ao_neighbors_mimic = null
if (T.permit_ao)
T.queue_ao()
CHECK_TICK
SSocclusion.enable()
to_chat(usr, "AO rebuild complete.")