(svn r16976) -Codechange: remove WaypointID and MAX_LENGTH constants in favour of their Station variants

This commit is contained in:
rubidium
2009-07-28 21:06:38 +00:00
parent ffa0c7d29d
commit e473e69ba4
11 changed files with 9 additions and 29 deletions

View File

@@ -41,7 +41,7 @@
{
EnforcePrecondition(false, IsValidWaypoint(waypoint_id));
EnforcePrecondition(false, !::StrEmpty(name));
EnforcePreconditionCustomError(false, ::strlen(name) < MAX_LENGTH_WAYPOINT_NAME_BYTES, AIError::ERR_PRECONDITION_STRING_TOO_LONG);
EnforcePreconditionCustomError(false, ::strlen(name) < MAX_LENGTH_STATION_NAME_BYTES, AIError::ERR_PRECONDITION_STRING_TOO_LONG);
return AIObject::DoCommand(0, waypoint_id, 0, CMD_RENAME_WAYPOINT, name);
}