Преглед на файлове

Moves AUTOLOOT_DISTANCE macro define location (#5421)

* Fixes #5375.
* Moves the macro define for AUTOLOOT_DISTANCE to mob.hpp as mob.cpp requires this, not atcommand.cpp.
Thanks to @vstumpf!
Aleos преди 4 години
родител
ревизия
7367714d40
променени са 2 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 0 6
      src/map/atcommand.hpp
  2. 6 0
      src/map/mob.hpp

+ 0 - 6
src/map/atcommand.hpp

@@ -9,12 +9,6 @@
 
 struct map_session_data;
 
-//This is the distance at which @autoloot works,
-//if the item drops farther from the player than this,
-//it will not be autolooted. [Skotlex]
-//Note: The range is unlimited unless this define is set.
-//#define AUTOLOOT_DISTANCE AREA_SIZE
-
 //global var
 extern char atcommand_symbol;
 extern char charcommand_symbol;

+ 6 - 0
src/map/mob.hpp

@@ -15,6 +15,12 @@
 
 struct guardian_data;
 
+//This is the distance at which @autoloot works,
+//if the item drops farther from the player than this,
+//it will not be autolooted. [Skotlex]
+//Note: The range is unlimited unless this define is set.
+//#define AUTOLOOT_DISTANCE AREA_SIZE
+
 //The number of drops all mobs have and the max drop-slot that the steal skill will attempt to steal from.
 #define MAX_MOB_DROP 10
 #define MAX_MVP_DROP 3