summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-18 21:25:26 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-18 21:25:26 +0000
commit2bc59ef9db7a86d0c483e3848ead57d6d691e6a3 (patch)
treedfe7994053b5e2d0a1aad158ca23f0cc8e0bc533 /src/map/atcommand.c
parentea3c690441b4f4c6cea3fd556ac0618018be9a23 (diff)
downloadhercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.tar.gz
hercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.tar.bz2
hercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.tar.xz
hercules-2bc59ef9db7a86d0c483e3848ead57d6d691e6a3.zip
Fixed numerous /W4 warnings (and created more :)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11514 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index dd022b9c8..5bcd80590 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2781,12 +2781,13 @@ static int atcommand_stopattack(struct block_list *bl,va_list ap)
/*==========================================
*
*------------------------------------------*/
-static int atcommand_pvpoff_sub(struct block_list *bl,va_list ap) {
+static int atcommand_pvpoff_sub(struct block_list *bl,va_list ap)
+{
TBL_PC* sd = (TBL_PC*)bl;
clif_pvpset(sd, 0, 0, 2);
- if (sd->pvp_timer != UINT_MAX) {
+ if (sd->pvp_timer != -1) {
delete_timer(sd->pvp_timer, pc_calc_pvprank_timer);
- sd->pvp_timer = UINT_MAX;
+ sd->pvp_timer = -1;
}
return 0;
}