projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
97ab44e
)
fixed drawing with brush using middle/right button set to space or MM walls
author
Holger Schemel
<info@artsoft.org>
Fri, 12 May 2017 18:13:23 +0000
(20:13 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:13 +0000
(23:21 +0100)
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index f841636fc2b1dc23649a8234082470f5a3b4942d..1edadc31df46954f0becf7779431c48ad22ef942 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-3658,6
+3658,7
@@
static void HandleControlButtons(struct GadgetInfo *);
static void HandleDrawingAreaInfo(struct GadgetInfo *);
static void PrintEditorGadgetInfoText(struct GadgetInfo *);
static boolean AskToCopyAndModifyLevelTemplate();
static void HandleDrawingAreaInfo(struct GadgetInfo *);
static void PrintEditorGadgetInfoText(struct GadgetInfo *);
static boolean AskToCopyAndModifyLevelTemplate();
+static boolean getDrawModeHiRes();
static int num_editor_gadgets = 0; /* dynamically determined */
static int num_editor_gadgets = 0; /* dynamically determined */
@@
-10296,7
+10297,7
@@
static void SetElementSimpleExt(int x, int y, int dx, int dy, int element,
int sx = x - level_xpos;
int sy = y - level_ypos;
int old_element = Feld[x][y];
int sx = x - level_xpos;
int sy = y - level_ypos;
int old_element = Feld[x][y];
- unsigned int new_bitmask = (
dx + 1) << (dy * 2
);
+ unsigned int new_bitmask = (
getDrawModeHiRes() ? (dx + 1) << (dy * 2) : 0x0f
);
boolean draw_masked = FALSE;
if (IS_MM_WALL_EDITOR(element))
boolean draw_masked = FALSE;
if (IS_MM_WALL_EDITOR(element))
@@
-12043,6
+12044,8
@@
static void HandleDrawingAreas(struct GadgetInfo *gi)
}
else
{
}
else
{
+ SetDrawModeHiRes(new_element);
+
if (new_element == EL_PLAYER_1)
{
/* remove player at old position */
if (new_element == EL_PLAYER_1)
{
/* remove player at old position */