mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 17:11:40 -04:00
some format adjustment .
This commit is contained in:
parent
475d62a5aa
commit
79856fabd8
2 changed files with 12 additions and 5 deletions
|
@ -3244,7 +3244,9 @@ inline PICDATA* GetOverlayPic(BYTE ovrl, BYTE ovrldata)
|
|||
|
||||
// MessageBox(0,fname,"",0);
|
||||
|
||||
if (pics.find(fname) != pics.end()) return &pics[fname];
|
||||
if (pics.find(fname) != pics.end()) {
|
||||
return &pics[fname];
|
||||
}
|
||||
|
||||
//errstream << "pic " << (LPCSTR)fname << " not found" << endl;
|
||||
|
||||
|
@ -5334,9 +5336,12 @@ void CIsoView::DrawMap()
|
|||
} else if (isTrack(m.overlay))
|
||||
offset.y += f_y / 2;
|
||||
|
||||
if (m.overlay >= 0x4a && m.overlay <= 0x65) offset.y += f_y / 2;
|
||||
if (m.overlay >= 0xcd && m.overlay <= 0xec) offset.y += f_y / 2;
|
||||
|
||||
if (m.overlay >= 0x4a && m.overlay <= 0x65) {
|
||||
offset.y += f_y / 2;
|
||||
}
|
||||
if (m.overlay >= 0xcd && m.overlay <= 0xec) {
|
||||
offset.y += f_y / 2;
|
||||
}
|
||||
|
||||
const auto drawCoordsOvrl = drawCoords + offset;
|
||||
|
||||
|
|
|
@ -3326,7 +3326,9 @@ void CLoading::LoadOverlayGraphic(const CString& lpOvrlName_, int iOvrlNum)
|
|||
|
||||
int i;
|
||||
int maxPics = head.c_images;
|
||||
if (maxPics > max_ovrl_img) maxPics = max_ovrl_img;
|
||||
if (maxPics > max_ovrl_img) {
|
||||
maxPics = max_ovrl_img;
|
||||
}
|
||||
|
||||
|
||||
// create an array of pointers to directdraw surfaces
|
||||
|
|
Loading…
Add table
Reference in a new issue