summaryrefslogtreecommitdiff
path: root/src/tv.c
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2019-02-04 21:36:18 -0600
committerGitHub <noreply@github.com>2019-02-04 21:36:18 -0600
commitb0ee1009759ed1c46da81b1fb8410e2b75e42bb2 (patch)
treeceee3e124b987b8dd24cb3a7bba85d4effe1ef5d /src/tv.c
parent646533cfa3c8c42aee3efedaadfe49e495b64892 (diff)
parentd4125fef9bc9adb95c7a5fb5b8be903b34adc510 (diff)
Merge pull request #543 from pret/mapdata
Convert map data to JSON
Diffstat (limited to 'src/tv.c')
-rw-r--r--src/tv.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tv.c b/src/tv.c
index 651bd3c8f..5904efeb8 100644
--- a/src/tv.c
+++ b/src/tv.c
@@ -38,6 +38,7 @@
#include "secret_base.h"
#include "tv.h"
#include "data2.h"
+#include "constants/layouts.h"
// Static type declarations
@@ -6264,7 +6265,9 @@ static void DoTVShowTodaysRivalTrainer(void)
case MAPSEC_DYNAMIC:
switch (show->rivalTrainer.mapLayoutId)
{
- case 0x115 ... 0x117:
+ case LAYOUT_SS_TIDAL_CORRIDOR:
+ case LAYOUT_SS_TIDAL_LOWER_DECK:
+ case LAYOUT_SS_TIDAL_ROOMS:
sTVShowState = 10;
break;
default:
@@ -6463,7 +6466,9 @@ static void DoTVShowHoennTreasureInvestigators(void)
{
switch (show->treasureInvestigators.mapLayoutId)
{
- case 0x115 ... 0x117:
+ case LAYOUT_SS_TIDAL_CORRIDOR:
+ case LAYOUT_SS_TIDAL_LOWER_DECK:
+ case LAYOUT_SS_TIDAL_ROOMS:
sTVShowState = 2;
break;
default: