summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 15:30:10 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 15:30:10 +0000
commitcc01193a8ae7de206290129eb1bbf3296a28d1bf (patch)
tree61aa5c25aa4b9a9ccb72cb84a856350dac38e212 /src/map/pc.c
parentce55e06f289c7c124be78b9bf7e4069d940c34f4 (diff)
downloadhercules-cc01193a8ae7de206290129eb1bbf3296a28d1bf.tar.gz
hercules-cc01193a8ae7de206290129eb1bbf3296a28d1bf.tar.bz2
hercules-cc01193a8ae7de206290129eb1bbf3296a28d1bf.tar.xz
hercules-cc01193a8ae7de206290129eb1bbf3296a28d1bf.zip
- Added pc_issit check to pc_can_move
- Stone/Freeze/Stun/Sleep now make you stand up as well. - Some logic pointer fixes on map_searchrandfreecell. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5251 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a45ac1902..34286e3cb 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -359,6 +359,9 @@ int pc_can_move(struct map_session_data *sd)
if ((sd->sc.option & OPTION_HIDE) && pc_checkskill(sd, RG_TUNNELDRIVE) <= 0)
return 0;
+
+ if (pc_issit(sd))
+ return 0; //Can't move while sitting...
if (DIFF_TICK(sd->canmove_tick, gettick()) > 0)
return 0;