From 7567925e87d11decf069277d8afa7ccd8484f68c Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 29 Apr 2006 02:23:07 +0000 Subject: [PATCH] Fix a few issues reported by aaBlueDragon git-svn-id: https://svn.eduke32.com/eduke32@122 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 2 +- polymer/eduke32/source/gameexec.c | 17 +++++++++++++---- polymer/eduke32/source/menus.c | 2 +- polymer/eduke32/source/player.c | 13 +++++++++++-- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 9cabd9615..1cb1f027c 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -9534,7 +9534,7 @@ void fakedomovethings(void) if ( myxvel || myyvel || syn->fvel || syn->svel ) { - if(p->steroids_amount > 0 && p->steroids_amount < 400) + if(p->jetpack_on == 0 && p->steroids_amount > 0 && p->steroids_amount < 400) doubvel <<= 1; myxvel += ((syn->fvel*doubvel)<<6); diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 292375dcf..30ada8fa9 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -6513,10 +6513,19 @@ good: if( ps[g_p].knee_incs == 0 && sprite[ps[g_p].i].xrepeat >= 40 ) if( cansee(g_sp->x,g_sp->y,g_sp->z-(4<<8),g_sp->sectnum,ps[g_p].posx,ps[g_p].posy,ps[g_p].posz+(16<<8),sprite[ps[g_p].i].sectnum) ) { - ps[g_p].knee_incs = 1; - if(ps[g_p].weapon_pos == 0) - ps[g_p].weapon_pos = -1; - ps[g_p].actorsqu = g_i; + int i; + for(i=0;i 0) + jump_input--; + j=0; if (BUTTON(gamefunc_Weapon_1)) @@ -4424,7 +4433,7 @@ HORIZONLY: p->holster_weapon = 0; if(p->weapon_pos < 0) p->weapon_pos = -p->weapon_pos; - if(p->actorsqu >= 0 && dist(&sprite[pi],&sprite[p->actorsqu]) < 1400 ) + if(p->actorsqu >= 0 && dist(&sprite[pi],&sprite[p->actorsqu]) < 1400 && sprite[p->actorsqu].statnum != MAXSTATUS) { guts(&sprite[p->actorsqu],JIBS6,7,myconnectindex); spawn(p->actorsqu,BLOODPOOL);