diff options
-rw-r--r-- | src/common/cbasetypes.h | 2 | ||||
-rw-r--r-- | src/map/status.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index 6db351b67..9eef2d6e5 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -276,8 +276,10 @@ typedef char bool; #if defined(WIN32) || defined(CYGWIN) #define RETCODE "\r\n" // CR/LF : Windows systems +/*FIXME: Mac OSX also uses \n, only pre-OSX uses \r #elif defined(__APPLE__) #define RETCODE "\r" // CR : Macintosh systems +*/ #else #define RETCODE "\n" // LF : Unix systems #endif diff --git a/src/map/status.c b/src/map/status.c index a4fbef589..efba2b497 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4464,7 +4464,6 @@ int status_get_sc_def(struct block_list *bl, int type) else if (sc->data[SC_SIEGFRIED].timer != -1) sc_def += 100*sc->data[SC_SIEGFRIED].val3; //Status resistance. } - return sc_def>10000?10000:sc_def; } @@ -4519,7 +4518,7 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val if (def && tick && !(flag&2)) { tick -= tick*def/10000; - if (tick <= 0) + if (tick <= 0 && type != SC_ANKLE) //Ankle Snare has it's opwn minimum return 0; } |