remove redundant mktrap() tests

The 'tm' and 'croom' ?: tests introduced to this sprintf() a couple
of days ago will both always yield their else clause because execution
will only get into the block when they're Null (due to
  if (!tm && !croom && ...) {}
that isn't visible in the diff's context).
This commit is contained in:
PatR
2024-01-09 16:36:50 -08:00
parent 3a8971cc17
commit d672ea3051

View File

@@ -1741,8 +1741,7 @@ mktrap(
Snprintf(errbuf, sizeof errbuf,
"args (%d,%d,%s,%s) are invalid",
num, mktrapflags, croom ? "[room]" : "null room",
tm ? "<x,y>" : "null location");
num, mktrapflags, "null room", "null location");
paniclog("mktrap", errbuf);
}
return;