From 5987bfa208a1e8d82f3f0e5c928d0f60ce325f82 Mon Sep 17 00:00:00 2001 From: katono Date: Mon, 22 Sep 2014 22:57:36 +0900 Subject: [PATCH] Deleted "g.NOTHING" that was an unused constant --- autoload/rogue/const.lua | 2 -- autoload/rogue/save.lua | 1 - 2 files changed, 3 deletions(-) diff --git a/autoload/rogue/const.lua b/autoload/rogue/const.lua index 56658af..7e559a6 100644 --- a/autoload/rogue/const.lua +++ b/autoload/rogue/const.lua @@ -3,7 +3,6 @@ local g = Rogue -- alias g.print_enum = {} -- g.dungeon -g.NOTHING = 0 g.OBJECT = 1 g.MONSTER = 2 g.STAIRS = 3 @@ -15,7 +14,6 @@ g.TUNNEL = 8 g.TRAP = 9 g.HIDDEN = 10 g.dungeon_desc = { - [g.NOTHING] = "NOTHING", [g.OBJECT] = "OBJECT", [g.MONSTER] = "MONSTER", [g.STAIRS] = "STAIRS", diff --git a/autoload/rogue/save.lua b/autoload/rogue/save.lua index f10f3fd..48a4beb 100644 --- a/autoload/rogue/save.lua +++ b/autoload/rogue/save.lua @@ -64,7 +64,6 @@ local function save_into_file(fname) :gsub(' = (%-?%d)', '=%1') :gsub(' = (true)', '=%1') :gsub(' = (false)', '=%1') - :gsub('"NOTHING"', '1') :gsub('"OBJECT"', '1') :gsub('"MONSTER"', '1') :gsub('"STAIRS"', '1')