Creating a turf over an existing turf does not force existing procs to stop
|
|
Not a bug
BYOND Version: | 507 |
Operating System: | Windows 7 Pro |
Web Browser: | Firefox 37.0 |
Applies to: | Dream Daemon |
|
Status: |
Not a bug
This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
|
|
|
If you are running a proc with the src set to a turf, and then create a turf at the same location as ourselves in the middle of the proc things get weird. I've got a proc that has a short delay before finishing an action and the turf changing in the middle of it caused a runtime in a completely unrelated area.
Runtime was
runtime error: list index out of bounds proc name: process (/datum/global_iterator/mecha_preserve_temp/process) source file: mecha.dm,1693
and the thing it gave a completely wrong runtime on surrounded by asteriks.
/datum/global_iterator/mecha_preserve_temp //normalizing cabin air temperature to 20 degrees celsium delay = 20
process(var/obj/mecha/mecha) if(mecha.cabin_air && mecha.cabin_air.volume > 0) var/delta = mecha.cabin_air.temperature - T20C ******mecha.cabin_air.set_temperature(mecha.cabin_air.temperature = max(-10, min(10, round(delta/4,0.1))))******* return
|