From 8caf34339053371c8d784cdba8ba1f2a3e32bd44 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 27 May 2024 11:14:25 +0200 Subject: [PATCH] track illegal moves --- pcmove.cpp | 5 +++++ system.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/pcmove.cpp b/pcmove.cpp index cb6a1bb0..b3b0e3bb 100644 --- a/pcmove.cpp +++ b/pcmove.cpp @@ -9,6 +9,8 @@ namespace hr { +EX int illegal_moves; + EX bool keepLightning = false; EX bool seenSevenMines = false; @@ -198,6 +200,7 @@ bool pcmove::checkNeedMove(bool checkonly, bool attacking) { yasc_message = XLAT("did not leave %the1", cwt.at->wall); killHardcorePlayer(multi::cpid, flags); } + if(!checkonly) illegal_moves++; return true; } @@ -444,6 +447,8 @@ bool pcmove::movepcto() { } } } + + if(checked_move_issue.type == miTHREAT && !checkonly) illegal_moves++; } return b; diff --git a/system.cpp b/system.cpp index 8fb203d8..a97a99c7 100644 --- a/system.cpp +++ b/system.cpp @@ -224,6 +224,7 @@ EX void initgame() { clearing::imputed = 0; rosephase = 0; shmup::count_pauses = 0; + illegal_moves = 0; splitrocks = 0;