little refactoring

This commit is contained in:
XiadaOku
2024-09-30 09:12:59 +03:00
parent 734c7ba5c6
commit 3aebf5ecbf

View File

@@ -964,11 +964,10 @@ _MEM_STATISTIC_("AFTER TABLE OPEN -> ");
#ifdef ACTINT
if (XGR_Obj.get_screen_scale_x() == 1) {
curGMap = new iGameMap(aScrDisp -> curIbs -> CenterX,aScrDisp -> curIbs -> CenterY,XSIDE,YSIDE);
COMPAS_RIGHT = DEFAULT_COMPAS_RIGHT;
} else {
curGMap = new iGameMap(XGR_MAXX / 2, XGR_MAXY / 2, XGR_MAXX / 2, XGR_MAXY / 2);
COMPAS_RIGHT = DEFAULT_COMPAS_RIGHT;
}
COMPAS_RIGHT = DEFAULT_COMPAS_RIGHT;
#else
curGMap = new iGameMap(XGR_MAXX/2,XGR_MAXY/2,XSIDE,YSIDE);
#endif
@@ -1762,7 +1761,7 @@ void iGameMap::change(int Dx,int Dy,int mode,int xcenter,int ycenter)
VcutDown = yc + yside;
if (XGR_Obj.get_screen_scale_x() == 1.6f) {
UcutRight = (XGR_MAXX - (800 - aScrDisp -> curIbs -> SizeX));
UcutRight = (XGR_MAXX - (I_RES_X - aScrDisp -> curIbs -> SizeX));
}
TurnSecX = TurnSecX*xsize/xsize_old;
@@ -2497,7 +2496,6 @@ void set_map_to_ibs(ibsObject* ibs)
COMPAS_RIGHT = DEFAULT_COMPAS_RIGHT;
} else {
set_map_to_fullscreen();
COMPAS_RIGHT = DEFAULT_COMPAS_RIGHT;
}
}