mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
removed the variable 'showoff'
This commit is contained in:
parent
a2b7da728a
commit
32baf01192
@ -1332,10 +1332,13 @@ EX bool quickfind(eLand l) {
|
|||||||
#define I2000 (INVLUCK?600:2000)
|
#define I2000 (INVLUCK?600:2000)
|
||||||
#define I10000 (INVLUCK?3000:10000)
|
#define I10000 (INVLUCK?3000:10000)
|
||||||
|
|
||||||
|
EX hookset<int(cell*, bool)> *hooks_wallchance;
|
||||||
|
|
||||||
EX int wallchance(cell *c, bool deepOcean) {
|
EX int wallchance(cell *c, bool deepOcean) {
|
||||||
|
int i = callhandlers(-1, hooks_wallchance, c, deepOcean);
|
||||||
|
if(i != -1) return i;
|
||||||
eLand l = c->land;
|
eLand l = c->land;
|
||||||
return
|
return
|
||||||
showoff ? (cwt.at->mpdist > 7 ? 0 : 10000) :
|
|
||||||
inmirror(c) ? 0 :
|
inmirror(c) ? 0 :
|
||||||
isGravityLand(l) ? 0 :
|
isGravityLand(l) ? 0 :
|
||||||
generatingEquidistant ? 0 :
|
generatingEquidistant ? 0 :
|
||||||
|
@ -284,7 +284,7 @@ void celldrawer::setcolors() {
|
|||||||
else if(c->wall == waBigTree) wcol = 0x0080C0;
|
else if(c->wall == waBigTree) wcol = 0x0080C0;
|
||||||
break;
|
break;
|
||||||
case laTemple: {
|
case laTemple: {
|
||||||
int d = showoff ? 0 : (eubinary||c->master->alt) ? celldistAlt(c) : 99;
|
int d = (eubinary||c->master->alt) ? celldistAlt(c) : 99;
|
||||||
if(chaosmode)
|
if(chaosmode)
|
||||||
fcol = 0x405090;
|
fcol = 0x405090;
|
||||||
else if(d % temple_layer_size() == 0)
|
else if(d % temple_layer_size() == 0)
|
||||||
@ -369,7 +369,7 @@ void celldrawer::setcolors() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
case laCamelot: {
|
case laCamelot: {
|
||||||
int d = showoff ? 0 : ((eubinary||c->master->alt) ? celldistAltRelative(c) : 0);
|
int d = ((eubinary||c->master->alt) ? celldistAltRelative(c) : 0);
|
||||||
#if CAP_TOUR
|
#if CAP_TOUR
|
||||||
if(!tour::on) camelotcheat = false;
|
if(!tour::on) camelotcheat = false;
|
||||||
if(camelotcheat)
|
if(camelotcheat)
|
||||||
|
1
quit.cpp
1
quit.cpp
@ -314,7 +314,6 @@ EX void showMission() {
|
|||||||
#endif
|
#endif
|
||||||
(cheater && !autocheat)? XLAT("It is a shame to cheat!") :
|
(cheater && !autocheat)? XLAT("It is a shame to cheat!") :
|
||||||
racing::on ? "racing mode" :
|
racing::on ? "racing mode" :
|
||||||
showoff ? XLAT("Showoff mode") :
|
|
||||||
(canmove && princess::challenge) ? XLAT("%1 Challenge", moPrincess) :
|
(canmove && princess::challenge) ? XLAT("%1 Challenge", moPrincess) :
|
||||||
canmove ? XLAT("Quest status") :
|
canmove ? XLAT("Quest status") :
|
||||||
XLAT("GAME OVER"),
|
XLAT("GAME OVER"),
|
||||||
|
@ -48,7 +48,6 @@ EX int asteroids_generated, asteroid_orbs_generated;
|
|||||||
EX time_t timerstart, savetime;
|
EX time_t timerstart, savetime;
|
||||||
EX bool timerstopped;
|
EX bool timerstopped;
|
||||||
EX int savecount;
|
EX int savecount;
|
||||||
EX bool showoff = false;
|
|
||||||
EX bool doCross = false;
|
EX bool doCross = false;
|
||||||
|
|
||||||
EX bool gamegen_failure;
|
EX bool gamegen_failure;
|
||||||
@ -952,8 +951,6 @@ EX void saveStats(bool emergency IS(false)) {
|
|||||||
// if(!timerghost) addMessage(XLAT("Emergency save at ") + its(saveposition));
|
// if(!timerghost) addMessage(XLAT("Emergency save at ") + its(saveposition));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(showoff) { fclose(f); return; }
|
|
||||||
|
|
||||||
time_t timer;
|
time_t timer;
|
||||||
timer = time(NULL);
|
timer = time(NULL);
|
||||||
char sbuf[128]; strftime(sbuf, 128, "%c", localtime(&timerstart));
|
char sbuf[128]; strftime(sbuf, 128, "%c", localtime(&timerstart));
|
||||||
|
Loading…
Reference in New Issue
Block a user