mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
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:
parent
151f9e61f0
commit
0c080c65c8
1 changed files with 4 additions and 2 deletions
6
doors.qc
6
doors.qc
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue