DEADSOFTWARE

fixed cheats and YN prompts
[d2df-sdl.git] / src / game / g_menu.pas
index 21eba04fdf38c99bc261d872b2bcc502e9969b91..231737bb1db45fba057737caf4bf4feee5a3cdfd 100644 (file)
@@ -889,7 +889,7 @@ var
   snd: TPlayableSound;
   res: Boolean;
 begin
-  if Key = Ord('y') then
+  if Key = IK_Y then
   begin
     g_Game_StopAllSounds(True);
     case (Random(18)) of
@@ -927,7 +927,7 @@ begin
     g_Game_Quit();
   end
     else
-      if Key = Ord('n') then
+      if Key = IK_N then
         g_GUI_HideWindow();
 end;