Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Old November 1, 2011, 12:42   #1
PowerWyrm's Avatar
Join Date: Apr 2008
Posts: 2,914
PowerWyrm is on a distinguished road
[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".

		/* Special Verification for suicide */
		prt("Please verify SUICIDE by typing the '@' sign: ", 0, 0);
		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.
PWMAngband variant maintainer - check (or to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old November 1, 2011, 16:34   #2
Angband Devteam member
Join Date: May 2007
Location: London, UK
Posts: 5,060
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
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.
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suicide mission? miyazaki AAR 12 June 23, 2010 01:44
Replacing #s with block characters Deranged Archivist Vanilla 2 September 28, 2009 18:57
lost both my characters to broken save file? leopena Variants 1 June 21, 2009 11:44
Would you suicide this guy? Dragonboneman Vanilla 13 October 30, 2008 09:05
Terrain changes visible outside characters sight -- Feature or Bug?? Elsairon Vanilla 3 June 12, 2007 13:04

All times are GMT +1. The time now is 19:51.

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