Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Vanilla (http://angband.oook.cz/forum/forumdisplay.php?f=3)
-   -   [3.3.x] Cannot suicide characters (http://angband.oook.cz/forum/showthread.php?t=5063)

PowerWyrm November 1, 2011 13:42

[3.3.x] Cannot suicide characters
 
The suicide command doesn't work in 3.3.x due to the fact that keypresses were changed to a structure: "code" + "mods".

Code:

                /* Special Verification for suicide */
                prt("Please verify SUICIDE by typing the '@' sign: ", 0, 0);
                flush();
                ch = inkey();
                prt("", 0, 0);
                if (ch.code != '@') return;

In this case, struct keypress ch is filled with code = '0' and mods = KC_MOD_CONTROL + KC_MOD_ALT. The check should be more explicite.

Magnate November 1, 2011 17:34

Suicide works fine for me in 3.3.2 (32-bit Linux, US keyboard), so it's clearly platform-specific to some extent. Added to #1460.


All times are GMT +1. The time now is 21:24.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.