fixed bug in single button handling causing broken tapes (EM engine)
[rocksndiamonds.git] / src / game_em / input.c
index b2c79ac7f79e475cb4f34214bd0e897f4d6a0c62..b8e2e663b1f5f96df79356adc6dea8b8220ba33e 100644 (file)
@@ -119,6 +119,9 @@ void readjoy(byte action, struct PLAYER *ply)
   int north = 0, east = 0, south = 0, west = 0;
   int snap = 0, drop = 0;
 
+  if (game_em.use_single_button && action & (JOY_BUTTON_1 | JOY_BUTTON_2))
+    action |= JOY_BUTTON_1 | JOY_BUTTON_2;
+
   if (action & JOY_LEFT)
     west = 1;