From 2bc59ef9db7a86d0c483e3848ead57d6d691e6a3 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 18 Oct 2007 21:25:26 +0000 Subject: Fixed numerous /W4 warnings (and created more :) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11514 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 0d2d04650..458f57fb3 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9417,12 +9417,13 @@ BUILDIN_FUNC(pvpon) return 0; } -static int buildin_pvpoff_sub(struct block_list *bl,va_list ap) { +static int buildin_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; } -- cgit v1.2.3-60-g2f50