]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/porto.qc
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / porto.qc
index a512ad2ca85eb80dd522e7c8a74e0acc63057743..3b047dc8c9d017ee2de7790a85ef1b3e6feb3be4 100644 (file)
@@ -55,20 +55,20 @@ MUTATOR_HOOKFUNCTION(porto_ticker, SV_StartFrame) {
 
 void W_Porto_Success(entity this)
 {
-       if(this.realowner == world)
+       if(this.realowner == NULL)
        {
                objerror(this, "Cannot succeed successfully: no owner\n");
                return;
        }
 
-       this.realowner.porto_current = world;
+       this.realowner.porto_current = NULL;
        remove(this);
 }
 
 string W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo);
 void W_Porto_Fail(entity this, float failhard)
 {
-       if(this.realowner == world)
+       if(this.realowner == NULL)
        {
                objerror(this, "Cannot fail successfully: no owner\n");
                return;
@@ -80,7 +80,7 @@ void W_Porto_Fail(entity this, float failhard)
                Portal_ClearWithID(this.realowner, this.portal_id);
        }
 
-       this.realowner.porto_current = world;
+       this.realowner.porto_current = NULL;
 
        if(this.cnt < 0 && !failhard && this.realowner.playerid == this.playerid && !IS_DEAD(this.realowner) && !(this.realowner.weapons & WEPSET(PORTO)))
        {
@@ -372,7 +372,7 @@ METHOD(PortoLaunch, wr_setup, void(entity thiswep, entity actor))
 }
 METHOD(PortoLaunch, wr_resetplayer, void(entity thiswep, entity actor))
 {
-    actor.porto_current = world;
+    actor.porto_current = NULL;
 }
 #endif
 #ifdef CSQC