mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
renamed shmup::safety to delayed_safety to prevent confusion
This commit is contained in:
parent
2c97b4f2aa
commit
f98448464a
4
game.cpp
4
game.cpp
@ -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);
|
||||
|
2
hyper.h
2
hyper.h
@ -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();
|
||||
|
2
init.cpp
2
init.cpp
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user