summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/pc.cpp6
-rw-r--r--src/mmo/clif.t.hpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 84d02a4..4f0c8d2 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3511,6 +3511,12 @@ int pc_readparam(dumb_ptr<block_list> bl, SP type)
case SP::ATTACKRANGE:
val = battle_get_range(bl);
break;
+ case SP::POS_X:
+ val = bl->bl_x;
+ break;
+ case SP::POS_Y:
+ val = bl->bl_y;
+ break;
}
return val;
diff --git a/src/mmo/clif.t.hpp b/src/mmo/clif.t.hpp
index 0a51523..f2ff583 100644
--- a/src/mmo/clif.t.hpp
+++ b/src/mmo/clif.t.hpp
@@ -469,6 +469,9 @@ enum class SP : uint16_t
#if 0
RANDOM_ATTACK_INCREASE = 1072,
#endif
+
+ POS_X = 1074,
+ POS_Y = 1075,
};
constexpr