fix compile error with .avelocity
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 10:34:29 +0000 (10:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 20 Oct 2009 10:34:29 +0000 (10:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9361 d7cf8633-e32d-0410-b094-e92efae38249

progsvm.h
prvm_edict.c
sv_main.c

index 5d60d77..f7ab5df 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -244,6 +244,7 @@ typedef struct prvm_prog_fieldoffsets_s
        int axis_up; // ssqc / csqc (physics)
        //int angles; // ssqc / csqc (physics)
        int velocity; // ssqc / csqc (physics)
+       int avelocity; // ssqc / csqc (physics)
        int spinvelocity; // ssqc / csqc (physics)
 }
 prvm_prog_fieldoffsets_t;
index c2a3abd..583ec19 100644 (file)
@@ -1648,6 +1648,7 @@ void PRVM_FindOffsets(void)
        prog->fieldoffsets.axis_up                        = PRVM_ED_FindFieldOffset("axis_up");
        prog->fieldoffsets.angles                         = PRVM_ED_FindFieldOffset("angles");
        prog->fieldoffsets.velocity                       = PRVM_ED_FindFieldOffset("velocity");
+       prog->fieldoffsets.avelocity                      = PRVM_ED_FindFieldOffset("avelocity");
        prog->fieldoffsets.spinvelocity                   = PRVM_ED_FindFieldOffset("spinvelocity");
 
        prog->funcoffsets.CSQC_ConsoleCommand             = PRVM_ED_FindFunctionOffset("CSQC_ConsoleCommand");
index 0f2ecc4..889b03a 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -309,6 +309,7 @@ prvm_required_field_t reqfields[] =
        {ev_vector, "axis_up"},
        //{ev_vector, "angles"},
        //{ev_vector, "velocity"},
+       //{ev_vector, "avelocity"},
        {ev_vector, "spinvelocity"},
 
 };