Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old November 1, 2011, 13:42   #1
PowerWyrm
Knight
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 769
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".

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.
__________________
PWMAngband variant maintainer - check http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old November 1, 2011, 17:34   #2
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,008
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate Send a message via Skype™ 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
Reply


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 02:44
Replacing #s with block characters Deranged Archivist Vanilla 2 September 28, 2009 19:57
lost both my characters to broken save file? leopena Variants 1 June 21, 2009 12:44
Would you suicide this guy? Dragonboneman Vanilla 13 October 30, 2008 10:05
Terrain changes visible outside characters sight -- Feature or Bug?? Elsairon Vanilla 3 June 12, 2007 14:04


All times are GMT +1. The time now is 11:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.