Fix missing melee damage info

This commit is contained in:
Alexander Batalov 2023-01-20 14:12:03 +03:00
parent dcd450a9b7
commit d435185e9e
1 changed files with 2 additions and 2 deletions

View File

@ -806,13 +806,13 @@ static bool characterSelectorWindowRenderStats()
// MELEE DAMAGE // MELEE DAMAGE
y += vh; y += vh;
str = statGetName(STAT_ARMOR_CLASS); str = statGetName(STAT_MELEE_DAMAGE);
strcpy(text, str); strcpy(text, str);
length = fontGetStringWidth(text); length = fontGetStringWidth(text);
fontDrawText(gCharacterSelectorWindowBuffer + CS_WINDOW_WIDTH * y + CS_WINDOW_SECONDARY_STAT_MID_X - length, text, length, CS_WINDOW_WIDTH, _colorTable[992]); fontDrawText(gCharacterSelectorWindowBuffer + CS_WINDOW_WIDTH * y + CS_WINDOW_SECONDARY_STAT_MID_X - length, text, length, CS_WINDOW_WIDTH, _colorTable[992]);
value = critterGetStat(gDude, STAT_ARMOR_CLASS); value = critterGetStat(gDude, STAT_MELEE_DAMAGE);
snprintf(text, sizeof(text), " %d", value); snprintf(text, sizeof(text), " %d", value);
length = fontGetStringWidth(text); length = fontGetStringWidth(text);