From f89d73504d80bb22accce181d1701a476cbb7f42 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 13 Feb 2012 21:38:00 +0000 Subject: [PATCH] Draw HANDHOLDINGLASER and ~ACCESS with guniqhud=200 and 201, respectively. This fixes updateanimation picking up foreign (and thus potentially oob) frame numbers at "3: c > n". git-svn-id: https://svn.eduke32.com/eduke32@2339 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index 15b67e539..8733f7d0f 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -2280,12 +2280,20 @@ static int32_t P_DisplayAccess(int32_t gs,int32_t snum) // p = wall[g_player[snum].ps->access_wallnum].pal; if ((g_player[snum].ps->access_incs-3) > 0 && (g_player[snum].ps->access_incs-3)>>3) + { + guniqhudid = 200; G_DrawTileScaled(170+(g_player[snum].sync->avel>>4)-(g_player[snum].ps->look_ang>>1)+(access_y[g_player[snum].ps->access_incs]>>2), looking_arc+266-((g_player[snum].ps->horiz-g_player[snum].ps->horizoff)>>4),HANDHOLDINGLASER+(g_player[snum].ps->access_incs>>3), gs,262144,p); + guniqhudid = 0; + } else + { + guniqhudid = 201; G_DrawTileScaled(170+(g_player[snum].sync->avel>>4)-(g_player[snum].ps->look_ang>>1)+(access_y[g_player[snum].ps->access_incs]>>2), looking_arc+266-((g_player[snum].ps->horiz-g_player[snum].ps->horizoff)>>4),HANDHOLDINGACCESS,gs,4+262144,p); + guniqhudid = 0; + } return 1; }