diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-12 13:04:19 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-12 13:04:19 +0200 |
| commit | b28f9bc860d2a8a0351e6f866e1b2de2a84cf436 (patch) | |
| tree | 8f5cc2ed9ff93fc61e2a3b061354ed977059a4cc /src/editor.c | |
| parent | f73e3661b136d4da4d66ef15b264ec7a958be335 (diff) | |
map work
Diffstat (limited to 'src/editor.c')
| -rw-r--r-- | src/editor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/editor.c b/src/editor.c index f65d966..4c005f8 100644 --- a/src/editor.c +++ b/src/editor.c @@ -33,6 +33,7 @@ static void update_tile_editor(platform_window* window) { if (pos.x < 0 || pos.y < 0) return; if (pos.x >= loaded_map.width || pos.y >= loaded_map.height) return; + if (_global_mouse.x < editor_width) return; switch (tile_edit_state) { @@ -90,7 +91,7 @@ void update_editor(platform_window* window) if (!is_editing_map) return; - float cam_speed = 500; + float cam_speed = 1000; if (keyboard_is_key_down(KEY_W)) { camera_y -= update_delta*cam_speed; } |
