From 79856fabd88a933022a7bdbc2cded0640be97107 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Mon, 27 May 2024 23:06:48 -0400 Subject: [PATCH] some format adjustment . --- MissionEditor/IsoView.cpp | 13 +++++++++---- MissionEditor/Loading.cpp | 4 +++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/MissionEditor/IsoView.cpp b/MissionEditor/IsoView.cpp index 0fdda2c..365e154 100644 --- a/MissionEditor/IsoView.cpp +++ b/MissionEditor/IsoView.cpp @@ -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; diff --git a/MissionEditor/Loading.cpp b/MissionEditor/Loading.cpp index 7a85e25..4e69841 100644 --- a/MissionEditor/Loading.cpp +++ b/MissionEditor/Loading.cpp @@ -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