rnd-20051213-2-src
authorHolger Schemel <info@artsoft.org>
Tue, 13 Dec 2005 01:04:35 +0000 (02:04 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:49:50 +0000 (10:49 +0200)
src/conftime.h
src/game.c

index fa2b987c6f79bffe5f390be02ad82dfbc76414ae..aba32efb5e915d178f662f81f786d5b013989281 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2005-12-13 01:12]"
+#define COMPILE_DATE_STRING "[2005-12-13 01:37]"
index c4cac805d0e078fa1ab23c344e913aa335443f4c..4a3f9d39c8feb62bcd728cfe9e7b2ca2acb309cb 100644 (file)
@@ -6596,19 +6596,17 @@ static void ExecuteCustomElementAction(int x, int y, int element, int page)
                            action_mode, action_arg_number,
                            action_arg_number_min, action_arg_number_max);
 
-  /* (for explicit player choice, set invalid value to "no player") */
   int action_arg_player_bits =
-    (action_arg == CA_ARG_PLAYER_ANY ? action_arg - CA_ARG_PLAYER :
+    (action_arg == CA_ARG_PLAYER_ANY ? PLAYER_BITS_ANY :
      action_arg >= CA_ARG_PLAYER_1 &&
      action_arg <= CA_ARG_PLAYER_4 ? action_arg - CA_ARG_PLAYER :
      action_arg >= CA_ARG_1 &&
-     action_arg <= CA_ARG_PLAYER_4 ? (1 << (action_arg - 1)) :
+     action_arg <= CA_ARG_PLAYER_4 ? (1 << (action_arg - CA_ARG_1)) :
      action_arg_element >= EL_PLAYER_1 &&
      action_arg_element <= EL_PLAYER_4 ?
      (1 << (action_arg_element - EL_PLAYER_1)) :
-     0);
+     PLAYER_BITS_ANY);
 
-  /* (for implicit player choice, set invalid value to "all players") */
   int trigger_player_bits =
     (change->actual_trigger_player >= EL_PLAYER_1 &&
      change->actual_trigger_player <= EL_PLAYER_4 ?