From: Holger Schemel Date: Tue, 13 Dec 2005 01:04:35 +0000 (+0100) Subject: rnd-20051213-2-src X-Git-Tag: 3.1.2^2~27 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d8865c54181a9375cc0ee0b967d8a709f4044ef8;p=rocksndiamonds.git rnd-20051213-2-src --- diff --git a/src/conftime.h b/src/conftime.h index fa2b987c..aba32efb 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2005-12-13 01:12]" +#define COMPILE_DATE_STRING "[2005-12-13 01:37]" diff --git a/src/game.c b/src/game.c index c4cac805..4a3f9d39 100644 --- a/src/game.c +++ b/src/game.c @@ -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 ?