mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Clean up A_InitEnemyFlags() a bit.
git-svn-id: https://svn.eduke32.com/eduke32@4384 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7573f0f09d
commit
057c5c9356
1 changed files with 11 additions and 42 deletions
|
@ -10690,57 +10690,26 @@ static void G_LoadExtraPalettes(void)
|
||||||
Bmemset(&slime_pal[255*3], 0, 3);
|
Bmemset(&slime_pal[255*3], 0, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SETBGFLAG(Tilenum) g_tile[Tilenum].flags |= SFLAG_HARDCODED_BADGUY
|
#define SETFLAG(Tilenum, Flag) g_tile[Tilenum].flags |= Flag
|
||||||
#define SETNDPFLAG(Tilenum) g_tile[Tilenum].flags |= SFLAG_NODAMAGEPUSH
|
|
||||||
|
|
||||||
// Has to be after setting the dynamic names (e.g. SHARK).
|
// Has to be after setting the dynamic names (e.g. SHARK).
|
||||||
static void A_InitEnemyFlags(void)
|
static void A_InitEnemyFlags(void)
|
||||||
{
|
{
|
||||||
int32_t i;
|
int32_t DukeEnemies[] = { SHARK, RECON, DRONE, LIZTROOPONTOILET, LIZTROOPJUSTSIT, LIZTROOPSTAYPUT, LIZTROOPSHOOT, LIZTROOPJETPACK, LIZTROOPSHOOT, LIZTROOPDUCKING,
|
||||||
|
LIZTROOPRUNNING, LIZTROOP, OCTABRAIN, COMMANDER, COMMANDERSTAYPUT, PIGCOP, PIGCOPSTAYPUT, PIGCOPDIVE, EGG, LIZMAN, LIZMANSPITTING, LIZMANJUMP, ORGANTIC,
|
||||||
|
BOSS1, BOSS2, BOSS3, BOSS4, RAT, ROTATEGUN };
|
||||||
|
int32_t i, SolidEnemies[] = { TANK, BOSS1, BOSS2, BOSS3, BOSS4, RECON, ROTATEGUN };
|
||||||
|
|
||||||
for (i=GREENSLIME; i<=GREENSLIME+7; i++)
|
for (i=GREENSLIME; i<=GREENSLIME+7; i++)
|
||||||
SETBGFLAG(i);
|
SETFLAG(i, SFLAG_HARDCODED_BADGUY);
|
||||||
|
|
||||||
SETBGFLAG(SHARK);
|
for (i=ARRAY_SIZE(DukeEnemies)-1; i>=0; i--)
|
||||||
SETBGFLAG(RECON);
|
SETFLAG(DukeEnemies[i], SFLAG_HARDCODED_BADGUY);
|
||||||
SETBGFLAG(DRONE);
|
|
||||||
SETBGFLAG(LIZTROOPONTOILET);
|
|
||||||
SETBGFLAG(LIZTROOPJUSTSIT);
|
|
||||||
SETBGFLAG(LIZTROOPSTAYPUT);
|
|
||||||
SETBGFLAG(LIZTROOPSHOOT);
|
|
||||||
SETBGFLAG(LIZTROOPJETPACK);
|
|
||||||
SETBGFLAG(LIZTROOPDUCKING);
|
|
||||||
SETBGFLAG(LIZTROOPRUNNING);
|
|
||||||
SETBGFLAG(LIZTROOP);
|
|
||||||
SETBGFLAG(OCTABRAIN);
|
|
||||||
SETBGFLAG(COMMANDER);
|
|
||||||
SETBGFLAG(COMMANDERSTAYPUT);
|
|
||||||
SETBGFLAG(PIGCOP);
|
|
||||||
SETBGFLAG(EGG);
|
|
||||||
SETBGFLAG(PIGCOPSTAYPUT);
|
|
||||||
SETBGFLAG(PIGCOPDIVE);
|
|
||||||
SETBGFLAG(LIZMAN);
|
|
||||||
SETBGFLAG(LIZMANSPITTING);
|
|
||||||
SETBGFLAG(LIZMANFEEDING);
|
|
||||||
SETBGFLAG(LIZMANJUMP);
|
|
||||||
SETBGFLAG(ORGANTIC);
|
|
||||||
SETBGFLAG(BOSS1);
|
|
||||||
SETBGFLAG(BOSS2);
|
|
||||||
SETBGFLAG(BOSS3);
|
|
||||||
SETBGFLAG(BOSS4);
|
|
||||||
SETBGFLAG(RAT);
|
|
||||||
SETBGFLAG(ROTATEGUN);
|
|
||||||
|
|
||||||
SETNDPFLAG(TANK);
|
for (i=ARRAY_SIZE(SolidEnemies)-1; i>=0; i--)
|
||||||
SETNDPFLAG(BOSS1);
|
SETFLAG(SolidEnemies[i], SFLAG_NODAMAGEPUSH);
|
||||||
SETNDPFLAG(BOSS4);
|
|
||||||
SETNDPFLAG(BOSS2);
|
|
||||||
SETNDPFLAG(BOSS3);
|
|
||||||
SETNDPFLAG(RECON);
|
|
||||||
SETNDPFLAG(ROTATEGUN);
|
|
||||||
}
|
}
|
||||||
#undef SETBGFLAG
|
#undef SETFLAG
|
||||||
#undef SETNDPFLAG
|
|
||||||
|
|
||||||
extern int32_t startwin_run(void);
|
extern int32_t startwin_run(void);
|
||||||
static void G_SetupGameButtons(void);
|
static void G_SetupGameButtons(void);
|
||||||
|
|
Loading…
Reference in a new issue