From b0006317e5cc4a48cd5b8a501b94813cd3b93670 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 20 Sep 2014 15:16:56 +0200 Subject: Replaced hardcoded values with constants for status_change_start's flag - Please use the values from enum scstart_flag when calling status_change_start or related functions. - This also applies to the sc_start script commands. Signed-off-by: Haru --- src/map/atcommand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index b788c6c37..299ee321a 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5469,7 +5469,8 @@ ACMD(autotrade) { sd->state.autotrade = 1; if( battle_config.at_timeout ) { int timeout = atoi(message); - status->change_start(NULL,&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0); + status->change_start(NULL,&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, + ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, SCFLAG_NONE); } /* currently standalone is not supporting buyingstores, so we rely on the previous method */ -- cgit v1.2.3-70-g09d2