From 39ba3d600b543f3d833935acd747fb8305b9ce0b Mon Sep 17 00:00:00 2001 From: s8nozieb Date: Sun, 4 Mar 2018 06:02:26 +0000 Subject: [PATCH] Fixed typo in BUILDIN_FUNC(sleep) (#2949) [ci skip] --- src/map/script.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/script.cpp b/src/map/script.cpp index 01ce6fbea3..9e1ffa352c 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -18613,7 +18613,7 @@ BUILDIN_FUNC(unitskillusepos) /// Pauses the execution of the script, detaching the player /// -/// sleep ; +/// sleep ; BUILDIN_FUNC(sleep) { // First call(by function call) @@ -18623,7 +18623,7 @@ BUILDIN_FUNC(sleep) ticks = script_getnum(st, 2); if (ticks <= 0) { - ShowError("buildin_sleep2: negative amount('%d') of milli seconds is not supported\n", ticks); + ShowError("buildin_sleep: negative or zero amount('%d') of milli seconds is not supported\n", ticks); return SCRIPT_CMD_FAILURE; } @@ -18656,7 +18656,7 @@ BUILDIN_FUNC(sleep2) ticks = script_getnum(st, 2); if (ticks <= 0) { - ShowError( "buildin_sleep2: negative amount('%d') of milli seconds is not supported\n", ticks ); + ShowError( "buildin_sleep2: negative or zero amount('%d') of milli seconds is not supported\n", ticks ); return SCRIPT_CMD_FAILURE; }