CFontRenderState: Collapse common switch cases in RefreshColor()

Same behavior, less code.
This commit is contained in:
Lioncash 2020-03-07 03:43:24 -05:00
parent 4daa8ac374
commit a490eaf8ff
1 changed files with 2 additions and 4 deletions

View File

@ -50,12 +50,10 @@ void CFontRenderState::RefreshColor(EColorType tp) {
return;
switch (x48_font->GetMode()) {
case EColorType::Main:
if (!x64_colorOverrides[0])
x0_drawStrOpts.x4_colors[0] = ConvertToTextureSpace(x54_colors[0]);
break;
case EColorType::Outline:
if (!x64_colorOverrides[0])
if (!x64_colorOverrides[0]) {
x0_drawStrOpts.x4_colors[0] = ConvertToTextureSpace(x54_colors[0]);
}
break;
default:
break;