From 76a336eea15b0af70ebe4d3dd13b25f1f503e03c Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Tue, 26 Feb 2019 17:51:04 +0800 Subject: Add missing documentation for disable battleground respawn - fix a minor bug that bg_create_team should return -1, as mentioned in doc/script_commands.txt --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/script.c b/src/map/script.c index 7578fcdcc..8096ec471 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -23687,7 +23687,7 @@ static BUILDIN(bg_create_team) if( strcmp(map_name,"-") != 0 ) { map_index = script->mapindexname2id(st,map_name); if( map_index == 0 ) { // Invalid Map - script_pushint(st,0); + script_pushint(st, -1); return true; } } -- cgit v1.2.3-70-g09d2