1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

option 'permaside' (-pside) to permanently move the model to the left side

This commit is contained in:
Zeno Rogue 2019-10-07 00:08:37 +02:00
parent 5664e51bde
commit 07abd6384a
2 changed files with 7 additions and 1 deletions

View File

@ -2323,6 +2323,10 @@ EX int read_config_args() {
shift_arg_formula(vid.yshift);
shift_arg_formula(vid.camera_angle);
}
else if(argis("-pside")) {
PHASEFROM(2);
permaside = true;
}
else if(argis("-xy")) {
PHASEFROM(2);
shift_arg_formula(vid.xposition);

View File

@ -7574,6 +7574,8 @@ purehookset hooks_calcparam;
EX int corner_centering;
EX bool permaside;
EX void calcparam() {
DEBBI(DF_GRAPH, ("calc param"));
@ -7594,7 +7596,7 @@ EX void calcparam() {
cd->scrsize = realradius - (inHighQual ? 0 : ISANDROID ? 2 : ISIOS ? 40 : 40);
current_display->sidescreen = false;
current_display->sidescreen = permaside;
if(vid.xres < vid.yres - 2 * vid.fsize && !inHighQual && !in_perspective()) {
cd->ycenter = vid.yres - cd->scrsize - vid.fsize;