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

dual:: minimap

This commit is contained in:
Zeno Rogue 2019-05-30 11:08:21 +02:00
parent b52c093d58
commit 0a10912403
2 changed files with 7 additions and 1 deletions

View File

@ -355,6 +355,7 @@ extern ld max_eu_dist;
void draw_radar(bool cornermode) {
if(dual::split([] { dual::in_subscreen([] { calcparam(); draw_radar(false); }); })) return;
bool d3 = WDIM == 3;
bool hyp = hyperbolic;
bool sph = sphere;
@ -364,8 +365,9 @@ void draw_radar(bool cornermode) {
dynamicval<bool> ga(vid.always3, false);
initquickqueue();
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;
for(int i=0; i<360; i++)

View File

@ -22,6 +22,10 @@ void gamedata_all(gamedata& gd) {
gd.store(genrange_bonus);
gd.store(gamerange_bonus);
gd.store(targets);
if(GDIM == 3) {
gd.store(radarlines);
gd.store(radarpoints);
}
if(GOLDBERG) gd.store(gp::param);
callhooks(hooks_gamedata, &gd);
}