summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-26 09:25:55 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-26 09:25:55 +0000
commit042913149087cff4dad4d36aa1a9c13703472f07 (patch)
treecd78ad741b36c91f1c0b48a63a8f7366464673fd /src/map/status.c
parent525e08137aa36cc2bbd8284f8b48de01bbb70b4f (diff)
downloadhercules-042913149087cff4dad4d36aa1a9c13703472f07.tar.gz
hercules-042913149087cff4dad4d36aa1a9c13703472f07.tar.bz2
hercules-042913149087cff4dad4d36aa1a9c13703472f07.tar.xz
hercules-042913149087cff4dad4d36aa1a9c13703472f07.zip
Moved the new novending cell check from the internal code to the client-server interface (allows server to force-open shop if needed)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11580 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index ce0403885..3b6d0460a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -586,7 +586,7 @@ int status_set_sp(struct block_list *bl, unsigned int sp, int flag)
int status_charge(struct block_list* bl, int hp, int sp)
{
- if(!((bl)->type&BL_CONSUME))
+ if(!(bl->type&BL_CONSUME))
return hp+sp; //Assume all was charged so there are no 'not enough' fails.
return status_damage(NULL, bl, hp, sp, 0, 3);
}