Fixed ownership checking of doors, caused interesting crashes due to another

bug which I had caused. (Gee, I should screw things up more often! ... er, no.)

Tim McGrath (Misty)
This commit is contained in:
Timothy C. McGrath 2002-06-02 05:23:47 +00:00
parent 151f9e61f0
commit 0c080c65c8

View file

@ -152,8 +152,10 @@ void() door_use =
local entity oself;
self.message = ""; // door message are for touch only
self.owner.message = "";
self.enemy.message = "";
if (self.owner)
self.owner.message = "";
if (self.owner)
self.enemy.message = "";
oself = self;
self = self.owner;
door_fire ();