projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6504e94
)
rnd-20001108-1-src
author
Holger Schemel
<info@artsoft.org>
Wed, 8 Nov 2000 18:05:14 +0000
(19:05 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 30 Aug 2014 08:35:03 +0000
(10:35 +0200)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index fe5dc3589467eb20eadc0f66da11f37212034e9c..3e6f7f2670d4ed40b76ef67922b462f464c74c24 100644
(file)
--- 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;
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);
/* forward declaration for internal use */
static void ModifyEditorCounter(int, int);