From 4b4d37cf3f5a3529a19e08092ce400dd419e7da7 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 13 Mar 2007 18:37:46 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@523 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/polymost.c | 4 ++-- polymer/eduke32/source/funct.h | 2 ++ polymer/eduke32/source/game.c | 17 +++++++---------- polymer/eduke32/source/gameexec.c | 9 +++++++++ polymer/eduke32/source/menus.c | 3 ++- 5 files changed, 22 insertions(+), 13 deletions(-) diff --git a/polymer/build/src/polymost.c b/polymer/build/src/polymost.c index ab61a249d..dc6ff6e64 100644 --- a/polymer/build/src/polymost.c +++ b/polymer/build/src/polymost.c @@ -159,8 +159,8 @@ long r_glowmapping = 1; long r_vertexarrays = 1; // Vertex Buffer Objects model drawing cvars -long r_vbos = 1; -long r_vbocount = 1; +long r_vbos = 0; +long r_vbocount = 64; static float fogresult, ofogresult, fogcol[4]; diff --git a/polymer/eduke32/source/funct.h b/polymer/eduke32/source/funct.h index ce98ccb6c..aed5041c3 100644 --- a/polymer/eduke32/source/funct.h +++ b/polymer/eduke32/source/funct.h @@ -245,4 +245,6 @@ extern inline int checkspriteflagsp(int iPicnum, int iType); extern int getteampal(int team); +extern void se40code(long x,long y,long z,long a,long h, long smoothratio); + #endif // __funct_h__ diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index eb2fc4853..55a0551cc 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -3832,7 +3832,7 @@ static void SE40_Draw(int spnum,long x,long y,long z,int a,int h,long smoothrati } } // end SE40 -static void se40code(long x,long y,long z,long a,long h, long smoothratio) +void se40code(long x,long y,long z,long a,long h, long smoothratio) { int i; @@ -6232,15 +6232,6 @@ void animatesprites(long x,long y,int a,long smoothratio) i = t->owner; s = &sprite[t->owner]; - /* - t->x = sprpos[i].x+mulscale16((long)(s->x-sprpos[i].x),smoothratio); - t->y = sprpos[i].y+mulscale16((long)(s->y-sprpos[i].y),smoothratio); - t->z = sprpos[i].z+mulscale16((long)(s->z-sprpos[i].z),smoothratio); - - sprpos[i].x = s->x; - sprpos[i].y = s->y; - sprpos[i].z = s->z; - */ //greenslime can't be handled through the dynamictostatic system due to addition on constant if ((t->picnum >= GREENSLIME)&&(t->picnum <= GREENSLIME+7)) {} @@ -6774,6 +6765,12 @@ PALONLY: if (actorscrptr[s->picnum]) { +#if 0 + t->x = sprpos[i].x+mulscale16((long)(s->x-sprpos[i].x),smoothratio); + t->y = sprpos[i].y+mulscale16((long)(s->y-sprpos[i].y),smoothratio); + t->z = sprpos[i].z+mulscale16((long)(s->z-sprpos[i].z),smoothratio); + t->ang = sprpos[i].ang+mulscale16((long)(s->ang-sprpos[i].ang),smoothratio); +#endif if (t4) { l = *(long *)(t4+8); diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 52ba2b214..4bdf23d7f 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -4626,6 +4626,8 @@ static int parse(void) #endif dointerpolations(smoothratio); +#define SE40 + #ifdef SE40 se40code(x,y,z,a,horiz,smoothratio); #endif @@ -6431,6 +6433,13 @@ void execute(int iActor,int iPlayer,long lDist) { move(); +#if 0 + sprpos[g_i].x = g_sp->x; + sprpos[g_i].y = g_sp->y; + sprpos[g_i].z = g_sp->z; + sprpos[g_i].ang = g_sp->ang; +#endif + if (g_sp->statnum == 1) { if (badguy(g_sp)) diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index 17de220dc..e9916041c 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -1875,6 +1875,7 @@ cheat_for_port_credits: "Thanks to the following people for their contributions:", "", "Adam Fazakerley", + "Charlie Honig", "Ed Coolidge", "James Bentler", "Javier Martinez", @@ -1884,7 +1885,7 @@ cheat_for_port_credits: "Lachlan McDonald", "Matthew Palmer", "Peter Green", - "Ryan C. Gordon", + "Ryan Gordon", "", "EDuke originally by Matt Saettler", "",