mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
history animation is now allowed if allowIncreasedRange
This commit is contained in:
parent
6817ed42ad
commit
0d00c70ed6
12
history.cpp
12
history.cpp
@ -187,11 +187,11 @@ EX namespace history {
|
|||||||
EX transmatrix first_center_view;
|
EX transmatrix first_center_view;
|
||||||
|
|
||||||
EX void save_end() {
|
EX void save_end() {
|
||||||
if(canmove && !cheater) {
|
if(!allowIncreasedSight()) {
|
||||||
addMessage("Enable cheat mode or GAME OVER to use this");
|
addMessage("Enable cheat mode or GAME OVER to use this");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(canmove && cheater) cheater++;
|
if(cheater) cheater++;
|
||||||
switch(saved_ends) {
|
switch(saved_ends) {
|
||||||
case 0:
|
case 0:
|
||||||
first_center_at = centerover;
|
first_center_at = centerover;
|
||||||
@ -572,11 +572,11 @@ EX namespace history {
|
|||||||
if(uni == 'e' || uni == 'E' || uni == 'E'-64) {
|
if(uni == 'e' || uni == 'E' || uni == 'E'-64) {
|
||||||
if(on) clear();
|
if(on) clear();
|
||||||
else {
|
else {
|
||||||
if(canmove && !cheater) {
|
if(!allowIncreasedSight()) {
|
||||||
addMessage("Enable cheat mode or GAME OVER to use this");
|
addMessage("Enable cheat mode or GAME OVER to use this");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(canmove && cheater) cheater++;
|
if(cheater) cheater++;
|
||||||
if(uni == 'E') create_recenter_to_view(false);
|
if(uni == 'E') create_recenter_to_view(false);
|
||||||
else if(uni == 'E'-64) create_recenter_to_view(true);
|
else if(uni == 'E'-64) create_recenter_to_view(true);
|
||||||
else create_playerpath();
|
else create_playerpath();
|
||||||
@ -603,11 +603,11 @@ EX namespace history {
|
|||||||
);
|
);
|
||||||
else if(uni == 'g') { dospiral = !dospiral; }
|
else if(uni == 'g') { dospiral = !dospiral; }
|
||||||
else if(uni == 'i') {
|
else if(uni == 'i') {
|
||||||
if(canmove && !cheater) {
|
if(!allowIncreasedSight()) {
|
||||||
addMessage("Enable cheat mode or GAME OVER to use this");
|
addMessage("Enable cheat mode or GAME OVER to use this");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(canmove && cheater) cheater++;
|
if(cheater) cheater++;
|
||||||
includeHistory = !includeHistory;
|
includeHistory = !includeHistory;
|
||||||
}
|
}
|
||||||
#if CAP_SDL
|
#if CAP_SDL
|
||||||
|
Loading…
Reference in New Issue
Block a user