Fixed a few errors.

This commit is contained in:
Albert Iordache
2011-12-27 18:52:03 +02:00
parent 14c29a96a4
commit cfbb6eb704
3 changed files with 5 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ datum
self.data["antibodies"] |= M:antibodies
// check if the blood has antibodies that cure our disease
if(self.data["antibodies"] & M:virus2.antigen) if(prob(10))
if (M:virus2) if((self.data["antibodies"] & M:virus2.antigen) && prob(10))
M:virus2.dead = 1

View File

@@ -174,7 +174,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates
if(c.key == O.key)
hasSubmitted = 1
if(!hasSubmitted && O.client.be_pai)
spawn question(O.client)
spawn question(O.client, origin)
proc/question(var/client/C, var/mob/origin)
asked.Add(C.key)

View File

@@ -74,16 +74,12 @@
return
else
if(isnull(I)) // Added these calls to CRASH to diagnose a runtime error that may be one of the causes of erasure errors --Abi79
CRASH("disposal/attackby() was called, but I was nulled before calling user.drop_item()")
var/debug_item_name = I.name
if(isnull(I))
//CRASH("disposal/attackby() was called, but I was nulled before calling user.drop_item()")
return // No idea why, but somehow I gets nulled before it goes into the else, and that leads to a lot of spam with runtime errors.
user.drop_item()
if(isnull(I))
CRASH("disposal/attackby() was called with [debug_item_name] as I, but I was nulled after calling user.drop_item()")
I.loc = src
user << "You place \the [I] into the [src]."
for(var/mob/M in viewers(src))