some format adjustment .

This commit is contained in:
Zero Fanker 2024-05-27 23:06:48 -04:00
parent 475d62a5aa
commit 79856fabd8
2 changed files with 12 additions and 5 deletions

View file

@ -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;

View file

@ -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