From 6eb6d9b8aa702f333d480158265cc0c3a469a0c9 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 2 Apr 2012 21:53:11 +0200 Subject: Refactor: Clean up process_dungeon_file() --- lib/core/dungeon.lua | 16 ---------------- lib/mods/theme/core/dungeon.lua | 16 ---------------- 2 files changed, 32 deletions(-) (limited to 'lib') diff --git a/lib/core/dungeon.lua b/lib/core/dungeon.lua index fc8364bd..d91d785b 100644 --- a/lib/core/dungeon.lua +++ b/lib/core/dungeon.lua @@ -46,22 +46,6 @@ function rotate_dir(dir, mov) return dir end --- Check if the map is a filename or directly a map -function load_map(map, y, x) - if strsub(map, 1, 5) == "#!map" then - %load_map(TRUE, map, y, x) - else - %load_map(FALSE, map, y, x) - end -end -function get_map_size(map) - if strsub(map, 1, 5) == "#!map" then - return %get_map_size(TRUE, map) - else - return %get_map_size(FALSE, map) - end -end - -- Place a trap for a specific level function place_trap(y, x, level) local old_dun = dun_level diff --git a/lib/mods/theme/core/dungeon.lua b/lib/mods/theme/core/dungeon.lua index fc8364bd..d91d785b 100644 --- a/lib/mods/theme/core/dungeon.lua +++ b/lib/mods/theme/core/dungeon.lua @@ -46,22 +46,6 @@ function rotate_dir(dir, mov) return dir end --- Check if the map is a filename or directly a map -function load_map(map, y, x) - if strsub(map, 1, 5) == "#!map" then - %load_map(TRUE, map, y, x) - else - %load_map(FALSE, map, y, x) - end -end -function get_map_size(map) - if strsub(map, 1, 5) == "#!map" then - return %get_map_size(TRUE, map) - else - return %get_map_size(FALSE, map) - end -end - -- Place a trap for a specific level function place_trap(y, x, level) local old_dun = dun_level -- cgit v1.2.3