Skip to content

Commit

Permalink
C4Config: Remove Graphics.Currency since there hasn't been an alterna…
Browse files Browse the repository at this point in the history
…tive wealth icon at least since CR
  • Loading branch information
Fulgen301 committed Nov 3, 2023
1 parent 819ce15 commit 4200542
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/C4Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ void C4ConfigGraphics::CompileFunc(StdCompiler *pComp)
pComp->Value(mkNamingAdapt(mkEnumAdaptT<int32_t>(UpperBoard, UpperBoardDisplayModes), "UpperBoard", C4UpperBoard::Full, false, true));

pComp->Value(mkNamingAdapt(ShowClock, "ShowClock", false, false, true));
pComp->Default("ShowAllResolutions");
pComp->Value(mkNamingAdapt(ShowCrewNames, "ShowCrewNames", true, false, true));
pComp->Value(mkNamingAdapt(ShowCrewCNames, "ShowCrewCNames", true, false, true));
pComp->Value(mkNamingAdapt(MsgBoard, "MsgBoard", true, false, true));
Expand All @@ -175,7 +174,7 @@ void C4ConfigGraphics::CompileFunc(StdCompiler *pComp)
pComp->Value(mkNamingAdapt(Gamma1, "Gamma1", 0));
pComp->Value(mkNamingAdapt(Gamma2, "Gamma2", 0x808080));
pComp->Value(mkNamingAdapt(Gamma3, "Gamma3", 0xffffff));
pComp->Value(mkNamingAdapt(Currency, "Currency", false));
pComp->Default("Currency");
pComp->Value(mkNamingAdapt(RenderInactive, "RenderInactive", Console));
pComp->Value(mkNamingAdapt(DisableGamma, "DisableGamma", false, false, true));
pComp->Value(mkNamingAdapt(Monitor, "Monitor", 0)); // 0 = D3DADAPTER_DEFAULT
Expand Down
1 change: 0 additions & 1 deletion src/C4Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class C4ConfigGraphics
std::int32_t BlitOffset; // blit offset (percent) (OpenGL)
std::int32_t TexIndent; // blit offset (per mille) (OpenGL)
int32_t Gamma1, Gamma2, Gamma3; // gamma ramps
bool Currency; // default wealth symbolseb
uint32_t RenderInactive; // draw viewports even if inactive. 1 = Fullscreen, 2 = EM, 1 | 2 = both
bool DisableGamma;
int32_t Monitor; // monitor index to play on
Expand Down
2 changes: 1 addition & 1 deletion src/C4Viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ void C4Viewport::DrawPlayerInfo(C4FacetEx &cgo)
cgo.X + cgo.Wdt - wdt - C4SymbolBorder,
cgo.Y + C4SymbolBorder,
wdt, hgt);
Game.GraphicsResource.fctWealth.DrawValue(ccgo, Game.Players.Get(Player)->Wealth, 0, Config.Graphics.Currency);
Game.GraphicsResource.fctWealth.DrawValue(ccgo, Game.Players.Get(Player)->Wealth);
}

// Value gain
Expand Down

0 comments on commit 4200542

Please sign in to comment.