From: Holger Schemel Date: Wed, 8 Nov 2000 18:05:14 +0000 (+0100) Subject: rnd-20001108-1-src X-Git-Tag: 2.0.0^2~36 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cec9eb9aaa3619d50b565219445dd1fdd4d9bd39;p=rocksndiamonds.git rnd-20001108-1-src --- diff --git a/src/editor.c b/src/editor.c index fe5dc358..3e6f7f26 100644 --- a/src/editor.c +++ b/src/editor.c @@ -690,10 +690,10 @@ static int new_element1 = EL_MAUERWERK; static int new_element2 = EL_LEERRAUM; static int new_element3 = EL_ERDREICH; -#define BUTTON_ELEMENT(button) (button == 1 ? new_element1 : \ - button == 2 ? new_element2 : \ - button == 3 ? new_element3 : EL_LEERRAUM) -#define BUTTON_STEPSIZE(button) (button == 1 ? 1 : button == 2 ? 5 : 10) +#define BUTTON_ELEMENT(button) ((button) == 1 ? new_element1 : \ + (button) == 2 ? new_element2 : \ + (button) == 3 ? new_element3 : EL_LEERRAUM) +#define BUTTON_STEPSIZE(button) ((button) == 1 ? 1 : (button) == 2 ? 5 : 10) /* forward declaration for internal use */ static void ModifyEditorCounter(int, int);