mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
make codes more readable .
This commit is contained in:
parent
9fa3e2e577
commit
47a770cdcb
2 changed files with 56 additions and 21 deletions
|
@ -4085,12 +4085,24 @@ void CLoading::PrepareUnitGraphic(const CString& lpUnittype)
|
|||
auto const bPowerUp = !rules.GetString(lpUnittype, "PowersUpBuilding").IsEmpty();
|
||||
|
||||
HTSPALETTE hPalette;
|
||||
if (theat == 'T') hPalette = m_palettes.m_hPalIsoTemp;
|
||||
if (theat == 'A') hPalette = m_palettes.m_hPalIsoSnow;
|
||||
if (theat == 'U') hPalette = m_palettes.m_hPalIsoUrb;
|
||||
if (theat == 'L') hPalette = m_palettes.m_hPalIsoLun;
|
||||
if (theat == 'D') hPalette = m_palettes.m_hPalIsoDes;
|
||||
if (theat == 'N') hPalette = m_palettes.m_hPalIsoUbn;
|
||||
if (theat == 'T') {
|
||||
hPalette = m_palettes.m_hPalIsoTemp;
|
||||
}
|
||||
if (theat == 'A') {
|
||||
hPalette = m_palettes.m_hPalIsoSnow;
|
||||
}
|
||||
if (theat == 'U') {
|
||||
hPalette = m_palettes.m_hPalIsoUrb;
|
||||
}
|
||||
if (theat == 'L') {
|
||||
hPalette = m_palettes.m_hPalIsoLun;
|
||||
}
|
||||
if (theat == 'D') {
|
||||
hPalette = m_palettes.m_hPalIsoDes;
|
||||
}
|
||||
if (theat == 'N') {
|
||||
hPalette = m_palettes.m_hPalIsoUbn;
|
||||
}
|
||||
|
||||
CIsoView& v = *((CFinalSunDlg*)theApp.m_pMainWnd)->m_view.m_isoview;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue