summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-02-07 20:27:38 +0100
committerFedja Beader <fedja@protonmail.ch>2025-02-07 20:27:38 +0100
commite6932c30b2645ea896b1e90f84aa75da8e9cadf6 (patch)
tree0e2c4d2dea464ef3604fecc371d49b8fc2e5f42e
parent8a7fe2d9ee58b8562f428486f031fb65b701dba7 (diff)
downloadserverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.tar.gz
serverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.tar.bz2
serverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.tar.xz
serverdata-e6932c30b2645ea896b1e90f84aa75da8e9cadf6.zip
use safe askyesno for mayorship resignation
... current accidental resignation count is around 3.
-rw-r--r--npc/functions/politics.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 07f6d3aca..9811579f0 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -673,7 +673,7 @@ function script POL_Manage {
case 99:
mesc l("Really resign?"), 1;
next;
- if (askyesno() == ASK_YES) {
+ if (askyesnosafe() == ASK_YES) {
setd(.@town$+"_MAYOR$", "Jesus Saves");
// If you have already received a vote, this will be skipped
if (getd(.@town$+"_VOTES[0]") <= 0 &&