diff options
author | Phlosioneer <mattmdrr2@gmail.com> | 2019-02-22 03:08:48 -0500 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-02-28 22:21:16 -0600 |
commit | 189d387f01104a715d788690fbc76d987ea3d6e1 (patch) | |
tree | 3b7fd01eedba31426e8314b42082ffcaa41ac3dd /src/tv.c | |
parent | 9ed0f775289d574a792f20ec37fe24f26e765117 (diff) |
Add macros for metatile manipulation
Diffstat (limited to 'src/tv.c')
-rw-r--r-- | src/tv.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -39,6 +39,7 @@ #include "tv.h" #include "data2.h" #include "constants/layouts.h" +#include "constants/metatile_behaviors.h" // Static type declarations @@ -853,9 +854,9 @@ void SetTVMetatilesOnMap(int width, int height, u16 tileId) { for (x = 0; x < width; x ++) { - if (MapGridGetMetatileBehaviorAt(x, y) == 0x86) // is this tile a TV? + if (MapGridGetMetatileBehaviorAt(x, y) == MB_TELEVISION) { - MapGridSetMetatileIdAt(x, y, tileId | 0xc00); + MapGridSetMetatileIdAt(x, y, tileId | MAP_IMPASSABLE_MASK); } } } |