mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 22:47:59 +01:00
TG: - Fixed one of the ways the Core R&D Computer can lock up and become completely
unusable. If it gets stuck from using this method, just close the window and click on the computer again. Fixes issue 316 . - Vaccine bottles from the panD.E.M.I.C. now auto-name. There was a bug where you could very quickly create a ton of bottles which could cause clients to crash. Fixes issue 326 . - Changed various ASSERT()'s to sanity ifs. ASSERT should really only be used during debugging, not in release. Runtime prevention. Revision: r3368 Author: johnsonmt88
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ obj/hud/New(var/type = 0)
|
||||
/obj/hud/proc/instantiate(var/type = 0)
|
||||
|
||||
mymob = loc
|
||||
ASSERT(istype(mymob, /mob))
|
||||
if(!istype(mymob, /mob)) return 0
|
||||
|
||||
if(ishuman(mymob))
|
||||
human_hud(mymob.UI) // Pass the player the UI style chosen in preferences
|
||||
|
||||
@@ -198,7 +198,7 @@
|
||||
if(part)
|
||||
parts[i] = part
|
||||
//debug below
|
||||
ASSERT(istype(parts[i],/obj/item))
|
||||
if(!istype(parts[i],/obj/item)) return 0
|
||||
return
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user