]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a bug where the wrong PRVM_ macro was being used
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 May 2011 13:08:01 +0000 (13:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 May 2011 13:08:01 +0000 (13:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11153 d7cf8633-e32d-0410-b094-e92efae38249

world.c

diff --git a/world.c b/world.c
index eadb9895547840a775b7c995355f5411ea88b48d..a0cac28c100aefe47efb391e6b6ee7e65726f3a9 100644 (file)
--- a/world.c
+++ b/world.c
@@ -2296,7 +2296,7 @@ treatasbox:
        //VectorCopy(PRVM_gameedictvector(ed, spinvelocity), spinvelocity);
        VectorCopy(PRVM_gameedictvector(ed, angles), angles);
        VectorCopy(PRVM_gameedictvector(ed, avelocity), avelocity);
-       if (PRVM_gameedictfloat(ed, gravity) != 0.0f && PRVM_EDICTFIELDFLOAT(ed, gravity) < 0.5f) gravity = false;
+       if (PRVM_gameedictfloat(ed, gravity) != 0.0f && PRVM_gameedictfloat(ed, gravity) < 0.5f) gravity = false;
        if (ed == prog->edicts)
                gravity = false;