#5 can't lose items

closed
nobody
None
5
2006-06-02
2006-04-19
Anonymous
No

When trying to lose an item, the client immediately
responds with "really quit ? (Y/N)"
The problem seems to be due to a missing 'break;' in a
switch statement [alternatively, this could also be
fixed by reordering the cases] in client/event.c

Problem has been there since somewhere 2004 [introduced
in version 1.37], so I guess nobody has been losing
items since then :)

possible patch:
RCS file: /cvsroot/xpilot/xpilot/src/client/event.c,v
retrieving revision 1.60
diff -u -r1.60 event.c
--- event.c 2 Sep 2005 18:32:26 -0000 1.60
+++ event.c 19 Apr 2006 22:01:21 -0000
@@ -553,6 +553,7 @@
case KEY_LOSE_ITEM:
if (!Key_press_select_lose_item())
return false;
+ break;

case KEY_EXIT:
return Key_press_exit();

submitted by sdemarre@yahoo.com

Discussion

  • Nobody/Anonymous

    Logged In: NO

    nice find :)

     
  • J. Veenhuizen

    J. Veenhuizen - 2006-06-01

    Logged In: YES
    user_id=1175650

    I will submit this to CVS. Thanks for the patch!

     
  • Kristian Söderblom

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks