]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
TEMPHACK_origin is no longer needed. Begone!
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Sep 2013 11:49:40 +0000 (11:49 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 21 Sep 2013 12:25:54 +0000 (14:25 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12007 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4cbebb927f4c6705d991608f61ed8e0f68d06f32

clvm_cmds.c

index d907fabc52f6861d9d7fcacbcb8b47bbdbcd5a26..20d71a30d4083f43e7c5f7048baf965f9c804552 100644 (file)
@@ -1604,20 +1604,6 @@ static void VM_CL_getplayerkey (prvm_prog_t *prog)
        else
                if(!strcasecmp(c, "viewentity"))
                        dpsnprintf(t, sizeof(t), "%i", i+1);
-       else
-               if(gamemode == GAME_XONOTIC && !strcasecmp(c, "TEMPHACK_origin"))
-               {
-                       // PLEASE REMOVE THIS once deltalisten() of EXT_CSQC_1
-                       // is implemented, or Xonotic uses CSQC-networked
-                       // players, whichever comes first
-                       entity_t *e = cl.entities + (i+1);
-                       if(e->state_current.active)
-                       {
-                               vec3_t origin;
-                               Matrix4x4_OriginFromMatrix(&e->render.matrix, origin);
-                               dpsnprintf(t, sizeof(t), VECTOR_LOSSLESS_FORMAT, origin[0], origin[1], origin[2]);
-                       }
-               }
        if(!t[0])
                return;
        PRVM_G_INT(OFS_RETURN) = PRVM_SetTempString(prog, t);