buddy_message_ignore_time: respect guidebot cage
Commitdc79bb8e4a
intended to clean up processing guidebot messages, but accidentally allowed the guidebot to report certain status messages before its cage was opened. Normal missions still do not report these messages, but some custom levels do. Reported-by: ziplantil <https://github.com/dxx-rebirth/dxx-rebirth/issues/438> Fixes:dc79bb8e4a
("Remove hack for bypassing buddy time restriction")
This commit is contained in:
parent
635ae0b595
commit
445a734779
|
@ -414,6 +414,8 @@ static void buddy_message_ignore_time(const char *const fmt, ...)
|
||||||
auto &BuddyState = LevelUniqueObjectState.BuddyState;
|
auto &BuddyState = LevelUniqueObjectState.BuddyState;
|
||||||
if (BuddyState.Buddy_messages_suppressed)
|
if (BuddyState.Buddy_messages_suppressed)
|
||||||
return;
|
return;
|
||||||
|
if (!ok_for_buddy_to_talk())
|
||||||
|
return;
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, fmt);
|
va_start(args, fmt);
|
||||||
buddy_message_force_va(fmt, args);
|
buddy_message_force_va(fmt, args);
|
||||||
|
|
Loading…
Reference in a new issue