Fixed typo in BUILDIN_FUNC(sleep) (#2949)

[ci skip]
This commit is contained in:
s8nozieb 2018-03-04 06:02:26 +00:00 committed by Jittapan Pluemsumran
parent 5f34efdf7a
commit 39ba3d600b

View File

@ -18613,7 +18613,7 @@ BUILDIN_FUNC(unitskillusepos)
/// Pauses the execution of the script, detaching the player
///
/// sleep <mili seconds>;
/// sleep <milli seconds>;
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;
}