1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-14 04:37:10 +00:00

new system for debug logs

This commit is contained in:
Zeno Rogue
2025-10-19 15:47:01 +02:00
parent 94024dd5f1
commit 113e75d5e1
43 changed files with 601 additions and 447 deletions

View File

@@ -9,6 +9,8 @@
namespace hr {
EX debugflag debug_turn = {"turn"};
EX int illegal_moves;
EX bool keepLightning = false;
@@ -366,7 +368,7 @@ bool pcmove::movepcto() {
flipplayer = false;
if(multi::players > 1) multi::flipped[multi::cpid] = false;
}
DEBBI(checkonly ? 0 : DF_TURN, ("movepc"));
DEBBI(checkonly ? 0 : debug_turn, ("movepc"));
if(!checkonly) invismove = false;
boatmove = false;
@@ -486,7 +488,7 @@ bool pcmove::after_move() {
achievement_gain("SEVENMINE");
}
DEBB(DF_TURN, ("done"));
DEBB(debug_turn, ("done"));
return true;
}