From 65d67221229ae5a1a16e26246d1dd4513dd1e2da Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sun, 17 Apr 2016 20:46:20 -0600 Subject: [PATCH] Added a new way to open the map. --- gui/mapGUI.js | 2 +- rooms/oceanRoom.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gui/mapGUI.js b/gui/mapGUI.js index 4defa5e..ac081ca 100644 --- a/gui/mapGUI.js +++ b/gui/mapGUI.js @@ -39,7 +39,7 @@ function drawMapGUI() { // Button Action if (guiControl.map.activateDelay <= 0) { - if (ct_confirm().down || ct_cancel().down) { + if (ct_confirm().down || ct_cancel().down || ct_m.down) { snd_cursorup.Play(); guiControl.map.show = false; } diff --git a/rooms/oceanRoom.js b/rooms/oceanRoom.js index 74ba3b6..ad2a31e 100644 --- a/rooms/oceanRoom.js +++ b/rooms/oceanRoom.js @@ -53,6 +53,11 @@ rm_Ocean.Do = function () { guiControl.inventory.activateDelay = 5; guiControl.inventory.show = true; } + if (ct_m.down) { + snd_select.Play(); + guiControl.map.activateDelay = 5; + guiControl.map.show = true; + } } } @@ -108,7 +113,7 @@ rm_Ocean.RunClock = function () { for (var i = 0; i < G.map.length; i++) { G.map[i].island.NewDay(); } - + G.SaveGame(); }