1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

renamed shmup::safety to delayed_safety to prevent confusion

This commit is contained in:
Zeno Rogue 2019-04-28 12:09:57 +02:00
parent 2c97b4f2aa
commit f98448464a
4 changed files with 8 additions and 9 deletions

View File

@ -6992,7 +6992,7 @@ bool collectItem(cell *c2, bool telekinesis) {
playSound(c2, "pickup-orb"); // TODO safety
items[c2->item] = 7;
if(shmup::on)
shmup::safety = true;
shmup::delayed_safety = true;
else
activateSafety(c2->land);
return true;
@ -7053,7 +7053,7 @@ bool collectItem(cell *c2, bool telekinesis) {
else if(c2->item == itBuggy || c2->item == itBuggy2) {
items[itOrbSafety] += 7;
if(shmup::on)
shmup::safety = true;
shmup::delayed_safety = true;
else {
buggyGeneration = false;
activateSafety(laCrossroads);

View File

@ -883,7 +883,7 @@ namespace shmup {
using namespace multi;
void recall();
extern bool on;
extern bool safety;
extern bool delayed_safety;
extern int curtime;
void clearMonsters();
void clearMemory();

View File

@ -44,8 +44,6 @@ void initAll() {
#endif
start_game();
shmup::safety = safety;
if(!shmup::on) {
restoreGolems(items[itOrbLife], moGolem); items[itOrbLife] = 0;
restoreGolems(items[itOrbFriend], moTameBomberbird); items[itOrbFriend] = 0;

View File

@ -987,7 +987,8 @@ eItem keyresult[MAXPLAYER];
ld fabsl(ld x) { return x>0?x:-x; }
bool on = false, safety = false;
bool on = false;
bool delayed_safety = false;
bool lastdead = false;
@ -3467,9 +3468,9 @@ void turn(int delta) {
active.clear();
if(safety) {
if(delayed_safety) {
activateSafety(pc[0]->base->land);
safety = false;
delayed_safety = false;
}
}
@ -3513,7 +3514,7 @@ void init() {
addMessage(XLAT("Welcome to the Shoot'em Up mode!"));
// addMessage(XLAT("F/;/Space/Enter/KP5 = fire, WASD/IJKL/Numpad = move"));
}
else safety = false;
delayed_safety = false;
}
bool boatAt(cell *c) {