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:
parent
5664e51bde
commit
07abd6384a
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user