Fixed a runtime error related to the group_multiplier of an air mixture being 0

In certain cases, zones would be emptied completely of turfs, thereby causing division by zero errors in FEA due to operations involving group_multiplier.
This commit is contained in:
Albert Iordache
2012-03-29 23:44:22 +03:00
parent 382582ca18
commit 159fd0bfc9
4 changed files with 25 additions and 18 deletions
@@ -353,6 +353,10 @@ obj/item/weapon/mop/proc/clean(turf/simulated/A as turf)
..()
/obj/item/weapon/mop/afterattack(atom/A, mob/user as mob)
if (isnull(A))
user << "\red You've encountered a nasty bug. You should tell a developer what you were trying to clean with the mop."
return
if (src.reagents.total_volume < 1 || mopcount >= 5)
user << "\blue Your mop is dry!"
return