- use enums instead of #defines.

This commit is contained in:
Christoph Oelckers 2021-07-25 10:30:14 +02:00
parent cc3e6b74f3
commit eae355110f

View file

@ -70,22 +70,25 @@ enum
kCondRange = 100, kCondRange = 100,
}; };
#define kPatrolStateSize 42 enum
#define kPatrolAlarmSeeDist 10000 {
#define kPatrolAlarmHearDist 10000 kPatrolStateSize = 42,
#define kMaxPatrolVelocity 500000 kPatrolAlarmSeeDist = 10000,
#define kMaxPatrolCrouchVelocity (kMaxPatrolVelocity >> 1) kPatrolAlarmHearDist = 10000,
#define kMaxPatrolSpotValue 500 kMaxPatrolVelocity = 500000,
#define kMinPatrolTurnDelay 8 kMaxPatrolCrouchVelocity = (kMaxPatrolVelocity >> 1),
#define kPatrolTurnDelayRange 20 kMaxPatrolSpotValue = 500,
kMinPatrolTurnDelay = 8,
kPatrolTurnDelayRange = 20,
#define kDudeFlagStealth 0x0001 kDudeFlagStealth = 0x0001,
#define kDudeFlagCrouch 0x0002 kDudeFlagCrouch = 0x0002,
#define kSlopeDist 0x20 kSlopeDist = 0x20,
#define kEffectGenCallbackBase 200 kEffectGenCallbackBase = 200,
#define kTriggerSpriteScreen 0x0001 kTriggerSpriteScreen = 0x0001,
#define kTriggerSpriteAim 0x0002 kTriggerSpriteAim = 0x0002,
};
// modern statnums // modern statnums
enum { enum {