mirror of
https://github.com/KranX/Vangers.git
synced 2025-11-30 23:15:27 +07:00
little refactoring
This commit is contained in:
@@ -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;
|
||||
@@ -2493,11 +2492,10 @@ void set_map_to_ibs(ibsObject* ibs)
|
||||
ibs->CenterX,
|
||||
ibs->CenterY);
|
||||
Redraw = 1;
|
||||
|
||||
|
||||
COMPAS_RIGHT = DEFAULT_COMPAS_RIGHT;
|
||||
} else {
|
||||
set_map_to_fullscreen();
|
||||
COMPAS_RIGHT = DEFAULT_COMPAS_RIGHT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user