- consolidated MISSILE_PLACEMENT definitions.

This commit is contained in:
Christoph Oelckers 2021-12-31 13:20:56 +01:00
parent 90ad4b8ef1
commit 271af39a59
2 changed files with 8 additions and 31 deletions

View file

@ -45,6 +45,13 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
BEGIN_SW_NS
struct MISSILE_PLACEMENT
{
int dist_over, dist_out;
short ang;
};
void SpawnZombie2(DSWActor*);
Collision move_ground_missile(DSWActor* actor, int xchange, int ychange, int ceildist, int flordist, uint32_t cliptype, int numtics);
void DoPlayerBeginDie(PLAYERp);
@ -11577,12 +11584,6 @@ void InitSpellNapalm(PLAYERp pp)
unsigned i;
short ammo;
typedef struct
{
int dist_over, dist_out;
short ang;
} MISSILE_PLACEMENT;
static const MISSILE_PLACEMENT mp[] =
{
{600 * 6, 400, 512},
@ -11664,12 +11665,6 @@ int InitEnemyNapalm(DSWActor* actor)
short dist;
unsigned i;
typedef struct
{
int dist_over, dist_out;
short ang;
} MISSILE_PLACEMENT;
static const MISSILE_PLACEMENT mp[] =
{
{600 * 6, 400, 512},
@ -12193,12 +12188,6 @@ int InitSumoNapalm(DSWActor* actor)
short dist;
short ang;
typedef struct
{
int dist_over, dist_out;
short ang;
} MISSILE_PLACEMENT;
static const MISSILE_PLACEMENT mp[] =
{
{0, 1100, 0},
@ -12726,12 +12715,6 @@ void InitHeartAttack(PLAYERp pp)
DSWActor* plActor = pp->actor;
short i = 0;
typedef struct
{
int dist_over, dist_out;
short ang;
} MISSILE_PLACEMENT;
static const MISSILE_PLACEMENT mp[] =
{
{0, 1100, 0},
@ -14408,12 +14391,6 @@ int InitZillaRocket(DSWActor* actor)
int nx, ny, nz, dist, nang;
short w, i;
typedef struct
{
int dist_over, dist_out;
short ang;
} MISSILE_PLACEMENT;
static const MISSILE_PLACEMENT mp[] =
{
{600 * 6, 400, 512},

View file

@ -576,7 +576,7 @@ STATEp sg_ZillaDead[] =
};
/*
typedef struct
struct
{
#define MAX_ACTOR_CLOSE_ATTACK 2
#define MAX_ACTOR_ATTACK 6