Rename command 0039 to if_can_hear_alarm
This commit is contained in:
parent
4ed6643dd2
commit
1fbd8ec44e
|
|
@ -1520,7 +1520,7 @@ u8 func0408_secretary[] = {
|
|||
set_view_distance(14)
|
||||
if_alertness(99, OPERATOR_GREATER_THAN, /*goto*/ LABEL_BECOME_ALERT1)
|
||||
if_target_in_sight(/*goto*/ 0x02)
|
||||
if_alarm_active2(/*goto*/ 0x67)
|
||||
if_can_hear_alarm(/*goto*/ 0x67)
|
||||
endloop(LABEL_MAIN_LOOP)
|
||||
|
||||
// Joanna within 14 units (?) of distance
|
||||
|
|
|
|||
|
|
@ -28200,7 +28200,7 @@ void incrementByte(u8 *dst, u8 amount)
|
|||
*dst += amount;
|
||||
}
|
||||
|
||||
bool func0f04a2b4(struct chrdata *chr)
|
||||
bool chrCanHearAlarm(struct chrdata *chr)
|
||||
{
|
||||
return alarmIsActive();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ bool (*g_CommandPointers[])(void) = {
|
|||
/*0x0036*/ aiRandom,
|
||||
/*0x0037*/ aiIfRandomLessThan,
|
||||
/*0x0038*/ aiIfRandomGreaterThan,
|
||||
/*0x0039*/ aiIfChrAlarmActivate,
|
||||
/*0x0039*/ aiIfCanHearAlarm,
|
||||
/*0x003a*/ aiIfAlarmActive,
|
||||
/*0x003b*/ aiIfAlarmInactive,
|
||||
/*0x003c*/ ai003c,
|
||||
|
|
|
|||
|
|
@ -1234,9 +1234,9 @@ bool aiStartPath(void)
|
|||
/**
|
||||
* @cmd 0039
|
||||
*/
|
||||
bool aiIfChrAlarmActivate(void)
|
||||
bool aiIfCanHearAlarm(void)
|
||||
{
|
||||
if (func0f04a2b4(g_Vars.chrdata)) {
|
||||
if (chrCanHearAlarm(g_Vars.chrdata)) {
|
||||
u8 *cmd = g_Vars.ailist + g_Vars.aioffset;
|
||||
g_Vars.aioffset = chraiGoToLabel(g_Vars.ailist, g_Vars.aioffset, cmd[2]);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -521,10 +521,12 @@
|
|||
label,
|
||||
|
||||
/**
|
||||
* Checks if the alarm is currently sounding. Not sure how this differs from
|
||||
* if_alarm_active.
|
||||
* Checks if the alarm is currently sounding.
|
||||
*
|
||||
* This is functionally the same as if_alarm_active, but during development may
|
||||
* have contained extra per-chr checks such as chr flags and distance.
|
||||
*/
|
||||
#define if_alarm_active2(label) \
|
||||
#define if_can_hear_alarm(label) \
|
||||
mkshort(0x0039), \
|
||||
label,
|
||||
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ s32 chrGetNumArghs(struct chrdata *chr);
|
|||
s32 chrGetNumCloseArghs(struct chrdata *chr);
|
||||
void decrementByte(u8 *dst, u8 amount);
|
||||
void incrementByte(u8 *dst, u8 amount);
|
||||
bool func0f04a2b4(struct chrdata *chr);
|
||||
bool chrCanHearAlarm(struct chrdata *chr);
|
||||
bool func0f04a76c(struct chrdata *chr, f32 distance);
|
||||
bool func0f04a79c(u8 chrnum, struct chrdata *chr, f32 distance);
|
||||
bool chrCompareTeams(struct chrdata *chr1, struct chrdata *chr2, u8 checktype);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
/*0x0036*/ bool aiRandom(void);
|
||||
/*0x0037*/ bool aiIfRandomLessThan(void);
|
||||
/*0x0038*/ bool aiIfRandomGreaterThan(void);
|
||||
/*0x0039*/ bool aiIfChrAlarmActivate(void);
|
||||
/*0x0039*/ bool aiIfCanHearAlarm(void);
|
||||
/*0x003a*/ bool aiIfAlarmActive(void);
|
||||
/*0x003b*/ bool aiIfAlarmInactive(void);
|
||||
/*0x003c*/ bool ai003c(void);
|
||||
|
|
|
|||
Loading…
Reference in New Issue