From b5aa49953e2a52552062ac212f54b091cf81d4f6 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 3 Feb 2013 12:48:20 +0000 Subject: [PATCH] player.c: remove a couple of unnecessary casts. git-svn-id: https://svn.eduke32.com/eduke32@3457 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index 7a927bc01..7221e8e42 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -929,7 +929,7 @@ int32_t A_Shoot(int32_t i, int32_t atwith) } if (actor[i].shootzvel) zvel = actor[i].shootzvel; - hitscan((const vec3_t *)&srcvect,sect, + hitscan(&srcvect,sect, sintable[(sa+512)&2047], sintable[sa&2047],zvel<<6, &hit,CLIPMASK1); @@ -1189,7 +1189,7 @@ int32_t A_Shoot(int32_t i, int32_t atwith) } if (actor[i].shootzvel) zvel = actor[i].shootzvel; - hitscan((const vec3_t *)&srcvect,sect, + hitscan(&srcvect,sect, sintable[(sa+512)&2047], sintable[sa&2047],zvel<<6, &hit,CLIPMASK1); @@ -1494,7 +1494,7 @@ int32_t A_Shoot(int32_t i, int32_t atwith) if (actor[i].shootzvel) zvel = actor[i].shootzvel; srcvect.z -= zoff; - hitscan((const vec3_t *)&srcvect,sect, + hitscan(&srcvect,sect, sintable[(sa+512)&2047], sintable[sa&2047], zvel<<6,&hit,CLIPMASK1); @@ -1610,7 +1610,7 @@ int32_t A_Shoot(int32_t i, int32_t atwith) s->cstat &= ~257; if (actor[i].shootzvel) zvel = actor[i].shootzvel; - hitscan((const vec3_t *)&srcvect,sect, + hitscan(&srcvect,sect, sintable[(sa+512)&2047], sintable[sa&2047], zvel<<6,&hit,CLIPMASK1);