Added missing guard and hid on-screen user warning
This commit is contained in:
parent
a8c5355f31
commit
479c65c0a1
1 changed files with 2 additions and 1 deletions
|
|
@ -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 != "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue