Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old November 1, 2011, 13:42   #1
PowerWyrm's Avatar
Join Date: Apr 2008
Posts: 2,900
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

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 14:42.

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