Skip to content

Commit

Permalink
little refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
XiadaOku committed Sep 30, 2024
1 parent 734c7ba commit 3aebf5e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/road.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 3aebf5e

Please sign in to comment.