Set more maze error messages in MazeSetTrackAction. (#8683)

This commit is contained in:
Aaron van Geffen 2019-02-07 00:29:50 +01:00 committed by GitHub
parent 27a64f71c8
commit 2a416dce81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ public:
if (!map_check_free_elements_and_reorganise(1))
{
res->Error = GA_ERROR::NO_FREE_ELEMENTS;
res->ErrorMessage = STR_NONE;
res->ErrorMessage = STR_TILE_ELEMENT_LIMIT_REACHED;
return res;
}
@ -110,7 +110,7 @@ public:
if (!map_is_location_owned(floor2(_x, 32), floor2(_y, 32), _z) && !gCheatsSandboxMode)
{
res->Error = GA_ERROR::NOT_OWNED;
res->ErrorMessage = STR_NONE;
res->ErrorMessage = STR_LAND_NOT_OWNED_BY_PARK;
return res;
}