removed the variable 'showoff'

This commit is contained in:
Zeno Rogue 2020-03-27 19:53:59 +01:00
parent a2b7da728a
commit 32baf01192
4 changed files with 6 additions and 7 deletions

View File

@ -1332,10 +1332,13 @@ EX bool quickfind(eLand l) {
#define I2000 (INVLUCK?600:2000)
#define I10000 (INVLUCK?3000:10000)
EX hookset<int(cell*, bool)> *hooks_wallchance;
EX int wallchance(cell *c, bool deepOcean) {
int i = callhandlers(-1, hooks_wallchance, c, deepOcean);
if(i != -1) return i;
eLand l = c->land;
return
showoff ? (cwt.at->mpdist > 7 ? 0 : 10000) :
inmirror(c) ? 0 :
isGravityLand(l) ? 0 :
generatingEquidistant ? 0 :

View File

@ -284,7 +284,7 @@ void celldrawer::setcolors() {
else if(c->wall == waBigTree) wcol = 0x0080C0;
break;
case laTemple: {
int d = showoff ? 0 : (eubinary||c->master->alt) ? celldistAlt(c) : 99;
int d = (eubinary||c->master->alt) ? celldistAlt(c) : 99;
if(chaosmode)
fcol = 0x405090;
else if(d % temple_layer_size() == 0)
@ -369,7 +369,7 @@ void celldrawer::setcolors() {
#endif
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(!tour::on) camelotcheat = false;
if(camelotcheat)

View File

@ -314,7 +314,6 @@ EX void showMission() {
#endif
(cheater && !autocheat)? XLAT("It is a shame to cheat!") :
racing::on ? "racing mode" :
showoff ? XLAT("Showoff mode") :
(canmove && princess::challenge) ? XLAT("%1 Challenge", moPrincess) :
canmove ? XLAT("Quest status") :
XLAT("GAME OVER"),

View File

@ -48,7 +48,6 @@ EX int asteroids_generated, asteroid_orbs_generated;
EX time_t timerstart, savetime;
EX bool timerstopped;
EX int savecount;
EX bool showoff = false;
EX bool doCross = false;
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(showoff) { fclose(f); return; }
time_t timer;
timer = time(NULL);
char sbuf[128]; strftime(sbuf, 128, "%c", localtime(&timerstart));