summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Allow-running-indoors.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/Allow-running-indoors.md b/Allow-running-indoors.md
new file mode 100644
index 0000000..a606fc9
--- /dev/null
+++ b/Allow-running-indoors.md
@@ -0,0 +1,16 @@
+Credit to TheXaman for posting this in the Simple Modifications Pokecommunity thread.
+
+This tutorial will allow the player to run on any map.
+
+Edit [src/bike.c](../blob/master/src/bike.c):
+```diff
+ bool32 IsRunningDisallowed(u8 metatile)
+ {
+- if (!(gMapHeader.flags & MAP_ALLOW_RUNNING) || IsRunningDisallowedByMetatile(metatile) == TRUE)
++ if (IsRunningDisallowedByMetatile(metatile) == TRUE)
+ return TRUE;
+ else
+ return FALSE;
+ }
+```
+And that's it! \ No newline at end of file