diff --git a/src/script/api/script_viewport.hpp b/src/script/api/script_viewport.hpp --- a/src/script/api/script_viewport.hpp +++ b/src/script/api/script_viewport.hpp @@ -33,7 +33,7 @@ public: * Scroll the viewport of all players to the given tile, * where the tile will be in the center of the screen. * @param tile The tile to put in the center of the screen. - * @pre ScriptObject::GetCompany() == OWNER_DEITY + * @pre ScriptCompanyMode::IsDeity(). * @pre ScriptMap::IsValidTile(tile) * @return True iff the command was executed successfully. */ @@ -44,7 +44,7 @@ public: * where the tile will be in the center of the screen. * @param company The company which players to scroll the viewport of. * @param tile The tile to put in the center of the screen. - * @pre ScriptObject::GetCompany() == OWNER_DEITY + * @pre ScriptCompanyMode::IsDeity(). * @pre ScriptMap::IsValidTile(tile) * @pre ResolveCompanyID(company) != COMPANY_INVALID * @return True iff the command was executed successfully. @@ -57,7 +57,7 @@ public: * @param client The client to scroll the viewport of. * @param tile The tile to put in the center of the screen. * @pre ScriptGame::IsMultiplayer() - * @pre ScriptObject::GetCompany() == OWNER_DEITY + * @pre ScriptCompanyMode::IsDeity(). * @pre ScriptMap::IsValidTile(tile) * @pre ResolveClientID(client) != CLIENT_INVALID * @return True iff the command was executed successfully.