mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 09:30:35 +00:00
dual:: minimap
This commit is contained in:
parent
b52c093d58
commit
0a10912403
4
hud.cpp
4
hud.cpp
@ -355,6 +355,7 @@ extern ld max_eu_dist;
|
|||||||
|
|
||||||
void draw_radar(bool cornermode) {
|
void draw_radar(bool cornermode) {
|
||||||
|
|
||||||
|
if(dual::split([] { dual::in_subscreen([] { calcparam(); draw_radar(false); }); })) return;
|
||||||
bool d3 = WDIM == 3;
|
bool d3 = WDIM == 3;
|
||||||
bool hyp = hyperbolic;
|
bool hyp = hyperbolic;
|
||||||
bool sph = sphere;
|
bool sph = sphere;
|
||||||
@ -364,8 +365,9 @@ void draw_radar(bool cornermode) {
|
|||||||
dynamicval<bool> ga(vid.always3, false);
|
dynamicval<bool> ga(vid.always3, false);
|
||||||
initquickqueue();
|
initquickqueue();
|
||||||
int rad = vid.radarsize;
|
int rad = vid.radarsize;
|
||||||
|
if(dual::state) rad /= 2;
|
||||||
|
|
||||||
ld cx = cornermode ? rad+2 : vid.xres-rad-2;
|
ld cx = dual::state ? (dual::currently_loaded ? vid.xres/2+rad+2 : vid.xres/2-rad-2) : cornermode ? rad+2 : vid.xres-rad-2;
|
||||||
ld cy = vid.yres-rad-2 - vid.fsize;
|
ld cy = vid.yres-rad-2 - vid.fsize;
|
||||||
|
|
||||||
for(int i=0; i<360; i++)
|
for(int i=0; i<360; i++)
|
||||||
|
@ -22,6 +22,10 @@ void gamedata_all(gamedata& gd) {
|
|||||||
gd.store(genrange_bonus);
|
gd.store(genrange_bonus);
|
||||||
gd.store(gamerange_bonus);
|
gd.store(gamerange_bonus);
|
||||||
gd.store(targets);
|
gd.store(targets);
|
||||||
|
if(GDIM == 3) {
|
||||||
|
gd.store(radarlines);
|
||||||
|
gd.store(radarpoints);
|
||||||
|
}
|
||||||
if(GOLDBERG) gd.store(gp::param);
|
if(GOLDBERG) gd.store(gp::param);
|
||||||
callhooks(hooks_gamedata, &gd);
|
callhooks(hooks_gamedata, &gd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user