diff options
| -rw-r--r-- | src/game/editor/ed_layer_tiles.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/editor/ed_layer_tiles.cpp b/src/game/editor/ed_layer_tiles.cpp index e12b2c63..7b3b89a9 100644 --- a/src/game/editor/ed_layer_tiles.cpp +++ b/src/game/editor/ed_layer_tiles.cpp @@ -120,6 +120,9 @@ int LAYER_TILES::brush_grab(LAYERGROUP *brush, RECT rect) void LAYER_TILES::brush_draw(LAYER *brush, float wx, float wy) { + if(readonly) + return; + // LAYER_TILES *l = (LAYER_TILES *)brush; int sx = convert_x(wx); @@ -214,12 +217,15 @@ int LAYER_TILES::render_properties(RECT *toolbox) }; PROPERTY props[] = { - {"Image", image, PROPTYPE_IMAGE, 0, 0}, {"Width", width, PROPTYPE_INT_STEP, 1, 1000000000}, {"Height", height, PROPTYPE_INT_STEP, 1, 1000000000}, + {"Image", image, PROPTYPE_IMAGE, 0, 0}, {0}, }; + if(editor.map.game_layer == this) + props[2].name = 0; + static int ids[NUM_PROPS] = {0}; int new_val = 0; int prop = editor.do_properties(toolbox, props, ids, &new_val); |