Added missing guard and hid on-screen user warning

This commit is contained in:
Marcus Minhorst 2025-08-29 12:05:39 -04:00 committed by Rachael Alexanderson
commit 479c65c0a1

View file

@ -245,8 +245,9 @@ const FName * Joy_GetMapping(const FName identifier)
bool replaced = actual != identifier && actual.IsValidName();
auto warn = [&identifier]() {
if (RumbleMissed.Contains(identifier)) return;
RumbleMissed.Push(identifier);
Printf(DMSG_WARNING, "Unknown rumble mapping '%s'\n", identifier.GetChars());
Printf(DMSG_WARNING|PRINT_NONOTIFY, "Unknown rumble mapping '%s'\n", identifier.GetChars());
};
if (!mapping && identifier != "")