Fix debugger breaking, reduce size

This commit is contained in:
Sally Coolatta 2022-12-13 12:44:11 -05:00
parent c184567361
commit 2a546df3fb
2 changed files with 3 additions and 1 deletions

View file

@ -334,7 +334,7 @@ struct skybox_t {
// Doing this the right way is causing problems.
// so FINE, it's a static length now.
#define ITEM_LIST_SIZE (NUMKARTRESULTS * 20)
#define ITEM_LIST_SIZE (NUMKARTRESULTS << 2)
struct itemroulette_t
{

View file

@ -4551,7 +4551,9 @@ static void K_drawDistributionDebugger(void)
V_DrawString((x >> FRACBITS) + 20, 2, V_ALLOWLOWERCASE|V_SNAPTOTOP, va("useOdds[%u]", rouletteData.useOdds));
V_DrawString((x >> FRACBITS) + 20, 10, V_ALLOWLOWERCASE|V_SNAPTOTOP, va("speed = %u", rouletteData.speed));
#ifndef ITEM_LIST_SIZE
Z_Free(rouletteData.itemList);
#endif
}
static void K_DrawWaypointDebugger(void)