Define MAX_TARGET_RANGE.
This commit is contained in:
parent
3783a0833e
commit
0246600d9c
|
@ -237,8 +237,8 @@ static void switchGuns(void)
|
||||||
|
|
||||||
static void selectTarget(void)
|
static void selectTarget(void)
|
||||||
{
|
{
|
||||||
unsigned int closest = 65535;
|
unsigned int closest = MAX_TARGET_RANGE;
|
||||||
unsigned int dist = 65535;
|
unsigned int dist = MAX_TARGET_RANGE;
|
||||||
Entity *e;
|
Entity *e;
|
||||||
|
|
||||||
player->target = NULL;
|
player->target = NULL;
|
||||||
|
@ -259,8 +259,8 @@ static void selectTarget(void)
|
||||||
|
|
||||||
static void selectMissionTarget(void)
|
static void selectMissionTarget(void)
|
||||||
{
|
{
|
||||||
unsigned int closest = 65535;
|
unsigned int closest = MAX_TARGET_RANGE;
|
||||||
unsigned int dist = 65535;
|
unsigned int dist = MAX_TARGET_RANGE;
|
||||||
Entity *e;
|
Entity *e;
|
||||||
|
|
||||||
battle.missionTarget = NULL;
|
battle.missionTarget = NULL;
|
||||||
|
|
|
@ -45,6 +45,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#define NUM_TEXT_BUCKETS 64
|
#define NUM_TEXT_BUCKETS 64
|
||||||
|
|
||||||
#define MAX_FIGHTER_GUNS 12
|
#define MAX_FIGHTER_GUNS 12
|
||||||
|
#define MAX_TARGET_RANGE 65536
|
||||||
|
|
||||||
#define BF_NONE 0
|
#define BF_NONE 0
|
||||||
#define BF_ENGINE (2 << 0)
|
#define BF_ENGINE (2 << 0)
|
||||||
|
|
Loading…
Reference in New Issue