mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 00:42:45 +01:00
Codefix: typos in comments and strings
This commit is contained in:
@@ -354,7 +354,7 @@ ScriptObject::DisableDoCommandScope::DisableDoCommandScope()
|
||||
|
||||
/* static */ SQInteger ScriptObject::Constructor(HSQUIRRELVM)
|
||||
{
|
||||
throw Script_FatalError("This class is not instantiable");
|
||||
throw Script_FatalError("This class is not instantiatable");
|
||||
}
|
||||
|
||||
/* static */ SQInteger ScriptObject::_cloned(HSQUIRRELVM vm)
|
||||
|
||||
@@ -55,7 +55,7 @@ private:
|
||||
};
|
||||
|
||||
/**
|
||||
* Uper-parent object of all API classes. You should never use this class in
|
||||
* Upper-parent object of all API classes. You should never use this class in
|
||||
* your script, as it doesn't publish any public functions. It is used
|
||||
* internally to have a common place to handle general things, like internal
|
||||
* command processing, and command-validation checks.
|
||||
@@ -143,7 +143,7 @@ public:
|
||||
static void InitializeRandomizers();
|
||||
|
||||
/**
|
||||
* Used when trying to instanciate ScriptObject from squirrel.
|
||||
* Used when trying to instantiate ScriptObject from squirrel.
|
||||
*/
|
||||
static SQInteger Constructor(HSQUIRRELVM);
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
OC_RELIABILITY = ::OCV_RELIABILITY, ///< Skip based on the reliability, value is percent (0..100).
|
||||
OC_MAX_RELIABILITY = ::OCV_MAX_RELIABILITY, ///< Skip based on the maximum reliability. Value in percent
|
||||
OC_MAX_SPEED = ::OCV_MAX_SPEED, ///< Skip based on the maximum speed, value is in OpenTTD's internal speed unit, see ScriptEngine::GetMaxSpeed.
|
||||
OC_AGE = ::OCV_AGE, ///< Skip based on the age, value is in calender-years. @see \ref ScriptCalendarTime
|
||||
OC_AGE = ::OCV_AGE, ///< Skip based on the age, value is in calendar-years. @see \ref ScriptCalendarTime
|
||||
OC_REQUIRES_SERVICE = ::OCV_REQUIRES_SERVICE, ///< Skip when the vehicle requires service, no value.
|
||||
OC_UNCONDITIONALLY = ::OCV_UNCONDITIONALLY, ///< Always skip, no compare function, no value.
|
||||
OC_REMAINING_LIFETIME = ::OCV_REMAINING_LIFETIME, ///< Skip based on the remaining lifetime in calendar-years. @see \ref ScriptCalendarTime
|
||||
|
||||
@@ -282,7 +282,7 @@ public:
|
||||
/**
|
||||
* Opens the Story Book if not yet open and selects the given page.
|
||||
* @param story_page_id The story page to update. If it is a global page, clients of all
|
||||
* companies are affecetd. Otherwise only the clients of the company which the page belongs
|
||||
* companies are affected. Otherwise only the clients of the company which the page belongs
|
||||
* to are affected.
|
||||
* @return True if the action succeeded.
|
||||
* @pre ScriptCompanyMode::IsDeity().
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
|
||||
/**
|
||||
* Create a new subsidy.
|
||||
* @param cargo_type The type of cargo to cary for the subsidy.
|
||||
* @param cargo_type The type of cargo to carry for the subsidy.
|
||||
* @param from_type The type of the subsidy on the 'from' side.
|
||||
* @param from_id The ID of the 'from' side.
|
||||
* @param to_type The type of the subsidy on the 'to' side.
|
||||
|
||||
@@ -415,7 +415,7 @@ public:
|
||||
* Raise the given corners of the tile. The corners can be combined,
|
||||
* for example: SLOPE_N | SLOPE_W (= SLOPE_NW) will raise the west and the north corner.
|
||||
* @note The corners will be modified in the order west (first), south, east, north (last).
|
||||
* Changing one corner might cause another corner to be changed too. So modifiing
|
||||
* Changing one corner might cause another corner to be changed too. So modifying
|
||||
* multiple corners may result in changing some corners by multiple steps.
|
||||
* @param tile The tile to raise.
|
||||
* @param slope Corners to raise (SLOPE_xxx).
|
||||
@@ -432,7 +432,7 @@ public:
|
||||
* Lower the given corners of the tile. The corners can be combined,
|
||||
* for example: SLOPE_N | SLOPE_W (= SLOPE_NW) will lower the west and the north corner.
|
||||
* @note The corners will be modified in the order west (first), south, east, north (last).
|
||||
* Changing one corner might cause another corner to be changed too. So modifiing
|
||||
* Changing one corner might cause another corner to be changed too. So modifying
|
||||
* multiple corners may result in changing some corners by multiple steps.
|
||||
* @param tile The tile to lower.
|
||||
* @param slope Corners to lower (SLOPE_xxx).
|
||||
|
||||
@@ -370,7 +370,7 @@ public:
|
||||
* is owned by you.
|
||||
* @pre ScriptEngine::IsBuildable(engine_id).
|
||||
* @pre ScriptCargo::IsValidCargo(cargo).
|
||||
* @return The capacity the vehicle will have when refited.
|
||||
* @return The capacity the vehicle will have when refitted.
|
||||
*/
|
||||
static SQInteger GetBuildWithRefitCapacity(TileIndex depot, EngineID engine_id, CargoType cargo);
|
||||
|
||||
@@ -431,7 +431,7 @@ public:
|
||||
* @pre ScriptCargo::IsValidCargo(cargo).
|
||||
* @pre You must own the vehicle.
|
||||
* @pre The vehicle must be stopped in the depot.
|
||||
* @return The capacity the vehicle will have when refited.
|
||||
* @return The capacity the vehicle will have when refitted.
|
||||
*/
|
||||
static SQInteger GetRefitCapacity(VehicleID vehicle_id, CargoType cargo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user