]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a stupid type error.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 28 Feb 2012 11:52:14 +0000 (11:52 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 2 Mar 2012 16:48:27 +0000 (17:48 +0100)
Why doesn't PRVM_EDICT_NUM(prvm_edict_t *) warn?!?

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11737 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a7204e2f520d5d5b06302923ac7c359066401f04

clvm_cmds.c

index ccc47671dc17409bb50a325f3b7d342dac440468..c810bbbbfde4fdbe92a4380f9119983d2c8895eb 100644 (file)
@@ -1475,7 +1475,7 @@ static void VM_CL_runplayerphysics (prvm_prog_t *prog)
        else
        {
                // new use
-               s.self = PRVM_PROG_TO_EDICT(ent);
+               s.self = ent;
                VectorCopy(PRVM_clientedictvector(ent, origin), s.origin);
                VectorCopy(PRVM_clientedictvector(ent, velocity), s.velocity);
                VectorCopy(PRVM_clientedictvector(ent, mins), s.mins);