summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index ef8dbf8be..0ebec7aaf 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2217,6 +2217,11 @@ int npc_parse_mob (char *w1, char *w2, char *w3, char *w4)
mob.num = 1;
}
+ if (battle_config.force_random_spawn)
+ { //Force a random spawn anywhere on the map.
+ mob.x = mob.y = mob.xs = mob.ys = 0;
+ }
+
//Apply the spawn delay fix [Skotlex]
mode = mob_db(class_)->status.mode;
if (mode & MD_BOSS) { //Bosses