From 2a0508542fefcd4635626511f844f2fb0909ce09 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 20 Oct 2009 10:34:29 +0000 Subject: [PATCH] fix compile error with .avelocity git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9361 d7cf8633-e32d-0410-b094-e92efae38249 --- progsvm.h | 1 + prvm_edict.c | 1 + sv_main.c | 1 + 3 files changed, 3 insertions(+) diff --git a/progsvm.h b/progsvm.h index 5d60d777..f7ab5dfd 100644 --- 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; diff --git a/prvm_edict.c b/prvm_edict.c index c2a3abdd..583ec19d 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -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"); diff --git a/sv_main.c b/sv_main.c index 0f2ecc49..889b03aa 100644 --- 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"}, }; -- 2.39.2