mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
- changespritestat literal number replacement
This commit is contained in:
parent
71213bf8bd
commit
67985b7819
2 changed files with 39 additions and 39 deletions
|
@ -148,7 +148,7 @@ int spawn_d(int j, int pn)
|
|||
break;
|
||||
case FOF:
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
case WATERSPLASH2:
|
||||
if(j >= 0)
|
||||
|
@ -201,7 +201,7 @@ int spawn_d(int j, int pn)
|
|||
case DUKETORSO:
|
||||
case DUKEGUN:
|
||||
case DUKELEG:
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
case TONGUE:
|
||||
if(j >= 0)
|
||||
|
@ -229,7 +229,7 @@ int spawn_d(int j, int pn)
|
|||
}
|
||||
else sp->xrepeat = sp->yrepeat = 0;
|
||||
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
|
||||
break;
|
||||
|
||||
|
@ -248,7 +248,7 @@ int spawn_d(int j, int pn)
|
|||
}
|
||||
|
||||
if(j >= 0) sp->ang = hittype[j].temp_data[5]+512;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
|
||||
case FORCESPHERE:
|
||||
|
@ -260,7 +260,7 @@ int spawn_d(int j, int pn)
|
|||
else
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 1;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -269,7 +269,7 @@ int spawn_d(int j, int pn)
|
|||
sp->z -= (26<<8);
|
||||
if( j >= 0 && sprite[j].pal == 6 )
|
||||
sp->pal = 6;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
case LAVAPOOL:
|
||||
if (!isWorldTour()) // Twentieth Anniversary World Tour
|
||||
|
@ -327,7 +327,7 @@ int spawn_d(int j, int pn)
|
|||
if( sp->lotag > ud.player_skill )
|
||||
{
|
||||
sp->xrepeat=sp->yrepeat=0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -433,7 +433,7 @@ int spawn_d(int j, int pn)
|
|||
if(ud.multimode < 2 && sp->pal)
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
}
|
||||
else sp->pal = 0;
|
||||
break;
|
||||
|
@ -552,7 +552,7 @@ int spawn_d(int j, int pn)
|
|||
sp->xrepeat = sp->yrepeat = 8;
|
||||
sp->ang = krand()&2047;
|
||||
}
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
|
||||
case VIEWSCREEN:
|
||||
|
@ -574,7 +574,7 @@ int spawn_d(int j, int pn)
|
|||
if( ud.multimode < 2 && sp->pal == 1)
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
sp->cstat = (short)32768;
|
||||
|
@ -640,7 +640,7 @@ int spawn_d(int j, int pn)
|
|||
sp->cstat |= 0x80;
|
||||
}
|
||||
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
|
||||
break;
|
||||
|
||||
|
@ -653,7 +653,7 @@ int spawn_d(int j, int pn)
|
|||
if(sector[sp->sectnum].lotag != 2)
|
||||
sp->cstat |= 32768;
|
||||
}
|
||||
changespritestat(i,13);
|
||||
changespritestat(i, STAT_DUMMYPLAYER);
|
||||
break;
|
||||
|
||||
case APLAYER:
|
||||
|
@ -661,10 +661,10 @@ int spawn_d(int j, int pn)
|
|||
j = ud.coop;
|
||||
if(j == 2) j = 0;
|
||||
|
||||
if( ud.multimode < 2 || (ud.multimode > 1 && j != sp->lotag) )
|
||||
changespritestat(i,5);
|
||||
if (ud.multimode < 2 || (ud.multimode > 1 && j != sp->lotag))
|
||||
changespritestat(i, STAT_MISC);
|
||||
else
|
||||
changespritestat(i,10);
|
||||
changespritestat(i, STAT_PLAYER);
|
||||
break;
|
||||
case WATERBUBBLE:
|
||||
if(j >= 0 && sprite[j].picnum == APLAYER)
|
||||
|
@ -677,7 +677,7 @@ int spawn_d(int j, int pn)
|
|||
}
|
||||
else sp->xrepeat = sp->yrepeat = 32;
|
||||
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
|
||||
case CRANE:
|
||||
|
@ -851,7 +851,7 @@ int spawn_d(int j, int pn)
|
|||
if( ( sp->lotag > ud.player_skill ) || ud.monsters_off == 1 )
|
||||
{
|
||||
sp->xrepeat=sp->yrepeat=0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
@ -995,7 +995,7 @@ int spawn_d(int j, int pn)
|
|||
if( ( ud.multimode < 2 && sp->pal != 0) || (sp->lotag > ud.player_skill) )
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1009,7 +1009,7 @@ int spawn_d(int j, int pn)
|
|||
if(ud.multimode > 1 && ud.coop != 1 && sp->picnum == ACCESSCARD)
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
@ -1072,7 +1072,7 @@ int spawn_d(int j, int pn)
|
|||
if( ud.multimode < 2 && sp->pal != 0 )
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
else sp->pal = 0;
|
||||
|
@ -1134,7 +1134,7 @@ int spawn_d(int j, int pn)
|
|||
if( ud.multimode < 2 && sp->pal != 0)
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1178,7 +1178,7 @@ int spawn_d(int j, int pn)
|
|||
if( ud.monsters_off == 1 && sp->picnum == EGG )
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -284,7 +284,7 @@ int spawn_r(int j, int pn)
|
|||
sp->yrepeat = 54;
|
||||
}
|
||||
}
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
case TONGUE:
|
||||
if(j >= 0)
|
||||
|
@ -311,7 +311,7 @@ int spawn_r(int j, int pn)
|
|||
}
|
||||
else sp->xrepeat = sp->yrepeat = 0;
|
||||
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
|
||||
case FORCESPHERE:
|
||||
|
@ -323,14 +323,14 @@ int spawn_r(int j, int pn)
|
|||
else
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 1;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
}
|
||||
break;
|
||||
|
||||
case BLOOD:
|
||||
sp->xrepeat = sp->yrepeat = 4;
|
||||
sp->z -= (26<<8);
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
case BLOODPOOL:
|
||||
if (spawnbloodpoolpart1(j, i)) break;
|
||||
|
@ -361,7 +361,7 @@ int spawn_r(int j, int pn)
|
|||
if(j >= 0 && sprite[j].pal == 6)
|
||||
sp->pal = 6;
|
||||
insertspriteq(i);
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
|
||||
case HYDRENT:
|
||||
|
@ -583,7 +583,7 @@ int spawn_r(int j, int pn)
|
|||
sp->xrepeat = sp->yrepeat = 8;
|
||||
sp->ang = krand()&2047;
|
||||
}
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
|
||||
case SHELL: //From the player
|
||||
|
@ -596,7 +596,7 @@ int spawn_r(int j, int pn)
|
|||
if (ud.multimode < 2 && sp->pal == 1)
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
sp->cstat = (short)32768;
|
||||
|
@ -654,7 +654,7 @@ int spawn_r(int j, int pn)
|
|||
sp->z = x-(12<<8);
|
||||
}
|
||||
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
|
||||
break;
|
||||
|
||||
|
@ -676,7 +676,7 @@ int spawn_r(int j, int pn)
|
|||
if(j == 2) j = 0;
|
||||
|
||||
if( ud.multimode < 2 || (ud.multimode > 1 && j != sp->lotag) )
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
else
|
||||
changespritestat(i,10);
|
||||
break;
|
||||
|
@ -692,7 +692,7 @@ int spawn_r(int j, int pn)
|
|||
}
|
||||
else
|
||||
sp->xrepeat = sp->yrepeat = 32;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
case CRANE:
|
||||
initcrane(j, i, CRANEPOLE);
|
||||
|
@ -720,7 +720,7 @@ int spawn_r(int j, int pn)
|
|||
if(sp->pal && ud.multimode > 1)
|
||||
{
|
||||
sp->xrepeat=sp->yrepeat=0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
case WATERBUBBLEMAKER:
|
||||
|
@ -1022,7 +1022,7 @@ int spawn_r(int j, int pn)
|
|||
if( ( sp->lotag > ud.player_skill ) || ud.monsters_off == 1 )
|
||||
{
|
||||
sp->xrepeat=sp->yrepeat=0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
@ -1168,7 +1168,7 @@ int spawn_r(int j, int pn)
|
|||
if( ( ud.multimode < 2 && sp->pal != 0) || (sp->lotag > ud.player_skill) )
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1182,7 +1182,7 @@ int spawn_r(int j, int pn)
|
|||
if(ud.multimode > 1 && ud.coop != 1 && sp->picnum == ACCESSCARD)
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
@ -1336,7 +1336,7 @@ int spawn_r(int j, int pn)
|
|||
if( ud.multimode < 2 && sp->pal != 0 )
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
else sp->pal = 0;
|
||||
|
@ -1386,7 +1386,7 @@ int spawn_r(int j, int pn)
|
|||
if( ud.multimode < 2 && sp->pal != 0)
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1462,7 +1462,7 @@ int spawn_r(int j, int pn)
|
|||
if( ud.monsters_off == 1 && sp->picnum == EGG )
|
||||
{
|
||||
sp->xrepeat = sp->yrepeat = 0;
|
||||
changespritestat(i,5);
|
||||
changespritestat(i, STAT_MISC);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue