More last-minute nitpicks
* Display forced items in the debugger, no matter their odds * Only update an item's format if there's a mismatch with its cvar
This commit is contained in:
parent
f0b7f3822e
commit
21dcf384fb
2 changed files with 6 additions and 3 deletions
|
|
@ -5611,7 +5611,7 @@ static void K_drawDistributionDebugger(void)
|
|||
K_IsPlayerLosing(stplyr)
|
||||
);
|
||||
|
||||
if (itemodds <= 0)
|
||||
if ((itemodds <= 0) && (!result->forceme)) // At the very least display forced items; that info's also important.
|
||||
continue;
|
||||
|
||||
V_DrawScaledPatch(x, y, V_SPLITSCREEN|V_HUDTRANS|V_SNAPTOTOP, K_GetCachedItemPatch(result->type, true, 0));
|
||||
|
|
|
|||
|
|
@ -8090,8 +8090,11 @@ static void P_InitLevelSettings(boolean reloadinggamestate)
|
|||
if ((kres) && (kitm->altcvar))
|
||||
{
|
||||
// Update the result's format based on the cvar's value.
|
||||
CONS_Printf("%s: updating format to %s\n", kres->name, kitm->altcvar->string);
|
||||
kres->format = kitm->altcvar->value;
|
||||
if (kres->format != kitm->altcvar->value)
|
||||
{
|
||||
CONS_Printf("%s: updating format to %s\n", kres->name, kitm->altcvar->string);
|
||||
kres->format = kitm->altcvar->value;
|
||||
}
|
||||
}
|
||||
|
||||
free(findname); // Don't need this anymore
|
||||
|
|
|
|||
Loading…
Reference in a new issue