mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1209 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
18896fd0cd
commit
3fa676fde8
2 changed files with 2583 additions and 2581 deletions
|
@ -2450,7 +2450,7 @@ static void G_MoveWeapons(void)
|
|||
ll = s->zvel>>1;
|
||||
}
|
||||
|
||||
Bmemcpy(&davect,s,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&davect,s,sizeof(vec3_t));
|
||||
/*
|
||||
dax = s->x;
|
||||
day = s->y;
|
||||
|
@ -2482,7 +2482,7 @@ static void G_MoveWeapons(void)
|
|||
day = s->y;
|
||||
daz = s->z;
|
||||
*/
|
||||
Bmemcpy(&davect,s,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&davect,s,sizeof(vec3_t));
|
||||
|
||||
tmpvect.x = (k*(sintable[(s->ang+512)&2047]))>>14;
|
||||
tmpvect.y = (k*(sintable[s->ang&2047]))>>14;
|
||||
|
@ -2520,7 +2520,7 @@ static void G_MoveWeapons(void)
|
|||
{
|
||||
k = A_Spawn(i,ActorExtra[i].projectile.spawns);
|
||||
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(vec3_t));
|
||||
/*
|
||||
sprite[k].x = dax;
|
||||
sprite[k].y = day;
|
||||
|
@ -2558,7 +2558,7 @@ static void G_MoveWeapons(void)
|
|||
{
|
||||
k = A_Spawn(i,ActorExtra[i].projectile.spawns);
|
||||
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(vec3_t));
|
||||
/*
|
||||
sprite[k].x = dax;
|
||||
sprite[k].y = day;
|
||||
|
@ -2677,7 +2677,7 @@ static void G_MoveWeapons(void)
|
|||
if (ActorExtra[i].projectile.spawns >= 0)
|
||||
{
|
||||
k = A_Spawn(i,ActorExtra[i].projectile.spawns);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(vec3_t));
|
||||
/*
|
||||
sprite[k].x = dax;
|
||||
sprite[k].y = day;
|
||||
|
@ -2778,7 +2778,7 @@ static void G_MoveWeapons(void)
|
|||
if (ActorExtra[i].projectile.workslike & PROJECTILE_RPG && ActorExtra[i].projectile.spawns > 0)
|
||||
{
|
||||
k = A_Spawn(i,ActorExtra[i].projectile.spawns);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(vec3_t));
|
||||
/*
|
||||
sprite[k].x = dax;
|
||||
sprite[k].y = day;
|
||||
|
@ -2892,7 +2892,7 @@ static void G_MoveWeapons(void)
|
|||
ll = s->zvel>>1;
|
||||
}
|
||||
|
||||
Bmemcpy(&davect,s,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&davect,s,sizeof(vec3_t));
|
||||
/*
|
||||
dax = s->x;
|
||||
day = s->y;
|
||||
|
@ -3039,7 +3039,7 @@ static void G_MoveWeapons(void)
|
|||
{
|
||||
vec3_t tmpvect;
|
||||
setsprite(i,&davect);
|
||||
Bmemcpy(&tmpvect, s, sizeof(int32_t) * 3);
|
||||
Bmemcpy(&tmpvect, s, sizeof(vec3_t));
|
||||
A_DamageWall(i,j,&tmpvect,s->picnum);
|
||||
|
||||
if (s->picnum == FREEZEBLAST)
|
||||
|
@ -3090,7 +3090,7 @@ static void G_MoveWeapons(void)
|
|||
if (s->picnum == RPG)
|
||||
{
|
||||
k = A_Spawn(i,EXPLOSION2);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&sprite[k],&davect,sizeof(vec3_t));
|
||||
/*
|
||||
sprite[k].x = dax;
|
||||
sprite[k].y = day;
|
||||
|
@ -4502,7 +4502,7 @@ static void G_MoveActors(void)
|
|||
|
||||
j &= (MAXWALLS-1);
|
||||
|
||||
Bmemcpy(&davect, s, sizeof(int32_t) * 3);
|
||||
Bmemcpy(&davect, s, sizeof(vec3_t));
|
||||
A_DamageWall(i,j,&davect,s->picnum);
|
||||
|
||||
k = getangle(
|
||||
|
|
|
@ -317,9 +317,8 @@ int32_t A_Shoot(int32_t i,int32_t atwith)
|
|||
{
|
||||
p = s->yvel;
|
||||
|
||||
srcvect.x = g_player[p].ps->posx;
|
||||
srcvect.y = g_player[p].ps->posy;
|
||||
srcvect.z = g_player[p].ps->posz+g_player[p].ps->pyoff+(4<<8);
|
||||
Bmemcpy(&srcvect,g_player[p].ps,sizeof(vec3_t));
|
||||
srcvect.z += g_player[p].ps->pyoff+(4<<8);
|
||||
sa = g_player[p].ps->ang;
|
||||
|
||||
g_player[p].ps->crack_time = 777;
|
||||
|
@ -328,7 +327,7 @@ int32_t A_Shoot(int32_t i,int32_t atwith)
|
|||
{
|
||||
p = -1;
|
||||
sa = s->ang;
|
||||
Bmemcpy(&srcvect,s,sizeof(int32_t) * 3);
|
||||
Bmemcpy(&srcvect,s,sizeof(vec3_t));
|
||||
srcvect.z -= ((s->yrepeat*tilesizy[s->picnum])<<1)+(4<<8);
|
||||
|
||||
if (s->picnum != ROTATEGUN)
|
||||
|
@ -440,9 +439,12 @@ int32_t A_Shoot(int32_t i,int32_t atwith)
|
|||
sprite[k].xvel = -1;
|
||||
sprite[k].ang = getangle(wall[hitinfo.hitwall].x-wall[wall[hitinfo.hitwall].point2].x,
|
||||
wall[hitinfo.hitwall].y-wall[wall[hitinfo.hitwall].point2].y)+512;
|
||||
Bmemcpy(&sprite[k],hitinfo.pos,sizeof(vec3_t));
|
||||
/*
|
||||
sprite[k].x = hitinfo.pos.x;
|
||||
sprite[k].y = hitinfo.pos.y;
|
||||
sprite[k].z = hitinfo.pos.z;
|
||||
*/
|
||||
if (ProjectileData[atwith].workslike & PROJECTILE_RANDDECALSIZE)
|
||||
{
|
||||
wh = (krand()&ProjectileData[atwith].xrepeat);
|
||||
|
|
Loading…
Reference in a new issue