Several more spelling fixes (#13752)

Signed-off-by: Mathias Gibbens <mathias@calenhad.com>

Co-authored-by: Mathias Gibbens <mathias@calenhad.com>
This commit is contained in:
Mathias GibbensandMathias Gibbens authored and GitHub committed 2021-01-10 18:23:35 +00:00
1 parent d5ada2dca1
commit b1e5a11bf3
39 files changed
+52 -52

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ Download and open a saved park.
Run a headless server for a saved park.
.El
.Sh SEE ALSO
.Lk https://openrct2.io "Offical site"
.Lk https://openrct2.io "Official site"
.sp
.Lk https://github.com/OpenRCT2/OpenRCT2 "GitHub"
.Sh HISTORY
+3 -3
View File
@@ -45,7 +45,7 @@ declare global {
var ui: Ui;
/**
* Registers the plugin. This only only be called once.
* Registers the plugin. This may only be called once.
* @param metadata Information about the plugin and the entry point.
*/
function registerPlugin(metadata: PluginMetadata): void;
@@ -144,7 +144,7 @@ declare global {
configuration: Configuration;
/**
* Shared generic storage for all plugins. Data is persistant across instances
* Shared generic storage for all plugins. Data is persistent across instances
* of OpenRCT2 and is stored externally as a single JSON file in the OpenRCT2
* user directory. Internally it is a JavaScript object. Objects and arrays
* are only copied by reference. The external file is only written when using
@@ -2030,7 +2030,7 @@ declare global {
}
/**
* Listens for incomming connections.
* Listens for incoming connections.
* Based on node.js net.Server, see https://nodejs.org/api/net.html for more information.
*/
interface Listener {
+1 -1
View File
@@ -15,7 +15,7 @@
using namespace OpenRCT2;
/**
* Main entry point for non-Windows sytems. Windows instead uses its own DLL proxy.
* Main entry point for non-Windows systems. Windows instead uses its own DLL proxy.
*/
int main(int argc, const char** argv)
{
@@ -45,7 +45,7 @@ void SwapFramebuffer::ApplyTransparency(ApplyTransparencyShader& shader, GLuint
glClearBufferfv(GL_DEPTH, 0, depthValueTransparent);
_opaqueFramebuffer.SwapColourBuffer(_mixFramebuffer);
// Change binding to guaruntee no undefined behavior
// Change binding to guarantee no undefined behavior
_opaqueFramebuffer.Bind();
}
@@ -158,7 +158,7 @@ static inline void RemoveBottomEndpoint(IntervalTree& y_intersect, IntervalTree:
}
/*
* Determines an aproximation of the number of depth peeling iterations needed
* Determines an approximation of the number of depth peeling iterations needed
* to render the command batch. It will never underestimate the number of
* iterations, but it can overestimate, usually by no more than +2.
*/
@@ -14,7 +14,7 @@
#include <openrct2/common.h>
/*
* Determines an aproximation of the number of depth peeling iterations needed
* Determines an approximation of the number of depth peeling iterations needed
* to render the command batch. It will never underestimate the number of
* iterations, but it can overestimate, usually by no more than +2.
*/
+2 -2
View File
@@ -644,7 +644,7 @@ static void window_loadsave_compute_max_date_width()
std::time_t long_time = mktime(&tm);
// Check how how this date is represented (e.g. 2000-02-20, or 00/02/20)
// Check how this date is represented (e.g. 2000-02-20, or 00/02/20)
std::string date = Platform::FormatShortDate(long_time);
maxDateWidth = gfx_get_string_width(date.c_str()) + DATE_TIME_GAP;
@@ -653,7 +653,7 @@ static void window_loadsave_compute_max_date_width()
tm.tm_yday = 294;
long_time = mktime(&tm);
// Again, check how how this date is represented (e.g. 2000-10-20, or 00/10/20)
// Again, check how this date is represented (e.g. 2000-10-20, or 00/10/20)
date = Platform::FormatShortDate(long_time);
maxDateWidth = std::max(maxDateWidth, gfx_get_string_width(date.c_str()) + DATE_TIME_GAP);
+1 -1
View File
@@ -1570,7 +1570,7 @@ static void window_options_audio_invalidate(rct_window* w)
WidgetSetEnabled(w, WIDX_SOUND_CHECKBOX, gConfigSound.master_sound_enabled);
WidgetSetEnabled(w, WIDX_MUSIC_CHECKBOX, gConfigSound.master_sound_enabled);
// Initialize only on first frame, otherwise the scrollbars wont be able to be modified
// Initialize only on first frame, otherwise the scrollbars won't be able to be modified
if (w->frame_no == 0)
{
initialize_scroll_position(w, WIDX_MASTER_VOLUME, 0, gConfigSound.master_volume);
+1 -1
View File
@@ -497,7 +497,7 @@ static void window_ride_list_invalidate(rct_window* w)
w->widgets[WIDX_PAGE_BACKGROUND].bottom = w->height - 1;
w->widgets[WIDX_TITLE].right = w->width - 2;
// if close buttton is on the right then it must move
// if close button is on the right then it must move
w->widgets[WIDX_CLOSE].left = w->width - 13;
w->widgets[WIDX_CLOSE].right = w->width - 3;
+1 -1
View File
@@ -233,7 +233,7 @@ static GameActions::Result::Ptr FindValidTrackDesignPlaceHeight(CoordsXYZ& loc,
tdAction.SetFlags(flags);
res = GameActions::Query(&tdAction);
// If successful dont keep trying.
// If successful don't keep trying.
// If failure due to no money then increasing height only makes problem worse
if (res->Error == GameActions::Status::Ok || res->Error == GameActions::Status::InsufficientFunds)
{
+1 -1
View File
@@ -122,7 +122,7 @@ namespace OpenRCT2
uint32_t _lastUpdateTime = 0;
bool _variableFrame = false;
// If set, will end the OpenRCT2 game loop. Intentially private to this module so that the flag can not be set back to
// If set, will end the OpenRCT2 game loop. Intentionally private to this module so that the flag can not be set back to
// false.
bool _finished = false;
+1 -1
View File
@@ -55,7 +55,7 @@ struct GameStateCompareData_t
};
/*
* Interface to create and capture game states. It only allows to have 32 active snapshots
* Interface to create and capture game states. It only allows one to have 32 active snapshots
* the oldest snapshot will be removed from the buffer. Never store the snapshot pointer
* as it may become invalid at any time when a snapshot is created, rather Link the snapshot
* to a specific tick which can be obtained by that later again assuming its still valid.
+1 -1
View File
@@ -143,7 +143,7 @@ money32 maze_set_track(
res = GameActions::Execute(&gameAction);
// NOTE: ride_construction_tooldown_construct requires them to be set.
// Refactor result type once theres no C code referencing this function.
// Refactor result type once there's no C code referencing this function.
if (auto title = res->ErrorTitle.AsStringId())
gGameCommandErrorTitle = *title;
else
+1 -1
View File
@@ -572,7 +572,7 @@ GameActions::Result::Ptr LandSmoothAction::SmoothLand(bool isExecuting) const
{ 0, 1, 3, 2 }, // MAP_SELECT_TYPE_EDGE_2
{ 1, 2, 0, 3 }, // MAP_SELECT_TYPE_EDGE_3
};
// Big coordinate offsets for the neigbouring tile for the given edge selection
// Big coordinate offsets for the neighbouring tile for the given edge selection
static constexpr CoordsXY stepOffsets[] = {
{ -32, 0 },
{ 0, 32 },
+4 -4
View File
@@ -87,14 +87,14 @@ namespace
# define _strdup(x) strdup((x))
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
# define RCT2_ENDIANESS __ORDER_LITTLE_ENDIAN__
# define RCT2_ENDIANNESS __ORDER_LITTLE_ENDIAN__
# define LOBYTE(w) (static_cast<uint8_t>(w))
# define HIBYTE(w) (static_cast<uint8_t>((static_cast<uint16_t>(w) >> 8) & 0xFF))
# endif // __BYTE_ORDER__
# ifndef RCT2_ENDIANESS
# error Unknown endianess!
# endif // RCT2_ENDIANESS
# ifndef RCT2_ENDIANNESS
# error Unknown endianness!
# endif // RCT2_ENDIANNESS
#endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
+1 -1
View File
@@ -47,7 +47,7 @@ namespace Http
if (pos != std::string::npos)
{
std::string key = line.substr(0, pos);
// substract 4 chars for ": " and "\r\n"
// subtract 4 chars for ": " and "\r\n"
std::string value = line.substr(pos + 2, line.size() - pos - 4);
res->header[key] = value;
}
+1 -1
View File
@@ -100,7 +100,7 @@ void JobPool::ProcessQueue()
unique_lock lock(_mutex);
do
{
// Wait for work or cancelation.
// Wait for work or cancellation.
_condPending.wait(lock, [this]() { return _shouldStop || !_pending.empty(); });
if (!_pending.empty())
+1 -1
View File
@@ -30,7 +30,7 @@ ImportResult ImageImporter::Import(
if ((flags & IMPORT_FLAGS::KEEP_PALETTE) && image.Depth != 8)
{
throw std::invalid_argument("Image is not palletted, it has bit depth of " + std::to_string(image.Depth));
throw std::invalid_argument("Image is not paletted, it has bit depth of " + std::to_string(image.Depth));
}
const auto width = image.Width;
+1 -1
View File
@@ -59,7 +59,7 @@ void mask_sse4_1(
#else
# ifdef OPENRCT2_X86
# error You have to compile this file with SSE4.1 enabled, when targetting x86!
# error You have to compile this file with SSE4.1 enabled, when targeting x86!
# endif
void mask_sse4_1(
+1 -1
View File
@@ -17,7 +17,7 @@
/**
* Decodes an RCT2 string to a wide char string still in the original code page.
* An RCT2 string is a multi-byte string where every two-byte code point is preceeded with a byte value of 255.
* An RCT2 string is a multi-byte string where every two-byte code point is preceded with a byte value of 255.
*/
static std::wstring DecodeToWideChar(std::string_view src)
{
+1 -1
View File
@@ -941,7 +941,7 @@ static void research_update_first_of_type(ResearchItem* researchItem)
auto rideType = researchItem->baseRideType;
if (rideType >= RIDE_TYPE_COUNT)
{
log_error("Research item has non-existant ride type index %d", rideType);
log_error("Research item has non-existent ride type index %d", rideType);
return;
}
+2 -2
View File
@@ -268,7 +268,7 @@ bool NetworkBase::BeginClient(const std::string& host, uint16_t port)
BeginServerLog();
// We need to wait for the map load before we execute any actions.
// If the client has the title screen running then theres a potential
// If the client has the title screen running then there's a potential
// risk of tick collision with the server map and title screen map.
GameActions::SuspendQueue();
@@ -3571,7 +3571,7 @@ GameActions::Result::Ptr network_modify_groups(
case ModifyGroupType::SetPermissions:
{
if (groupId == 0)
{ // cant change admin group permissions
{ // can't change admin group permissions
return std::make_unique<GameActions::Result>(
GameActions::Status::Disallowed, STR_THIS_GROUP_CANNOT_BE_MODIFIED);
}
+1 -1
View File
@@ -906,7 +906,7 @@ static std::vector<INTERFACE_INFO> GetNetworkInterfaces()
return {};
}
// Get all the network interfaces, requires a trial and error approch
// Get all the network interfaces, requires a trial and error approach
// until we find the capacity required to store all of them.
DWORD len = 0;
size_t capacity = 16;
+2 -2
View File
@@ -1196,7 +1196,7 @@ void Guest::CheckIfLost()
/**
*
* rct2: 0x69C26B
* Check if cant find ride.
* Check if can't find ride.
*/
void Guest::CheckCantFindRide()
{
@@ -1228,7 +1228,7 @@ void Guest::CheckCantFindRide()
/**
*
* rct2: 0x69C2D0
* Check if cant find exit.
* Check if can't find exit.
*/
void Guest::CheckCantFindExit()
{
+1 -1
View File
@@ -84,7 +84,7 @@ static TileElement* get_banner_on_path(TileElement* path_element)
// Found a banner
if (bannerElement->GetType() == TILE_ELEMENT_TYPE_BANNER)
return bannerElement;
// Last element so there cant be any other banners
// Last element so there can't be any other banners
if (bannerElement->IsLastForTile())
return nullptr;
+1 -1
View File
@@ -257,7 +257,7 @@ enum class PeepRideSubState : uint8_t
AtEntrance = 0,
InEntrance = 1,
FreeVehicleCheck = 2, // Spend money on ride
LeaveEntrance = 3, // Calculate what direction and where to go after commiting to entering vehicle
LeaveEntrance = 3, // Calculate what direction and where to go after committing to entering vehicle
ApproachVehicle = 4,
EnterVehicle = 5,
OnRide = 6,
+2 -2
View File
@@ -55,7 +55,7 @@ const wchar_t* _wszArchitecture = WSZ(OPENRCT2_ARCHITECTURE);
// Note: uploading gzipped crash dumps manually requires specifying
// 'Content-Encoding: gzip' header in HTTP request, but we cannot do that,
// so just hope the file name with '.gz' suffix is enough.
// For docs on uplading to backtrace.io check
// For docs on uploading to backtrace.io check
// https://documentation.backtrace.io/product_integration_minidump_breakpad/
static bool UploadMinidump(const std::map<std::wstring, std::wstring>& files, int& error, std::wstring& response)
{
@@ -274,7 +274,7 @@ static bool OnCrash(
}
else
{
MessageBoxW(nullptr, L"Dump uploaded succesfully.", WSZ(OPENRCT2_NAME), MB_OK | MB_ICONINFORMATION);
MessageBoxW(nullptr, L"Dump uploaded successfully.", WSZ(OPENRCT2_NAME), MB_OK | MB_ICONINFORMATION);
}
}
HRESULT coInitializeResult = CoInitialize(nullptr);
+1 -1
View File
@@ -146,7 +146,7 @@ private:
td->ride_mode = RideMode::PoweredLaunch;
}
// Convert RCT1 vehicle type to RCT2 vehicle type. Intialise with an string consisting of 8 spaces.
// Convert RCT1 vehicle type to RCT2 vehicle type. Initialise with a string consisting of 8 spaces.
rct_object_entry vehicleObject = { 0x80, " " };
if (td4Base.type == RIDE_TYPE_MAZE)
{
+1 -1
View File
@@ -142,7 +142,7 @@ enum
RCT12_FOOTPATH_PROPERTIES_TYPE_MASK = (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7),
};
// Masks and flags for values stored in in RCT12TileElement.properties.path.additions
// Masks and flags for values stored in RCT12TileElement.properties.path.additions
enum
{
RCT12_FOOTPATH_PROPERTIES_ADDITIONS_TYPE_MASK = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3),
+1 -1
View File
@@ -1439,7 +1439,7 @@ void S6Exporter::ExportTileElements()
void S6Exporter::ExportTileElement(RCT12TileElement* dst, TileElement* src)
{
// Todo: allow for changing defition of OpenRCT2 tile element types - replace with a map
// Todo: allow for changing definition of OpenRCT2 tile element types - replace with a map
uint8_t tileElementType = src->GetType();
dst->ClearAs(tileElementType);
dst->SetDirection(src->GetDirection());
+1 -1
View File
@@ -1056,7 +1056,7 @@ public:
void ImportTileElement(TileElement* dst, const RCT12TileElement* src)
{
// Todo: allow for changing defition of OpenRCT2 tile element types - replace with a map
// Todo: allow for changing definition of OpenRCT2 tile element types - replace with a map
uint8_t tileElementType = src->GetType();
dst->ClearAs(tileElementType);
dst->SetDirection(src->GetDirection());
+1 -1
View File
@@ -9892,7 +9892,7 @@ Vehicle* Vehicle::GetCar(size_t carIndex) const
car = GetEntity<Vehicle>(car->next_vehicle_on_train);
if (car == nullptr)
{
log_error("Tried to get non-existant car from index!");
log_error("Tried to get non-existent car from index!");
return nullptr;
}
}
+1 -1
View File
@@ -282,7 +282,7 @@ static int8_t climate_step_weather_level(int8_t currentWeatherLevel, int8_t next
/**
* Calculates future weather development.
* RCT2 implements this as discrete probability distributions dependant on month and climate
* RCT2 implements this as discrete probability distributions dependent on month and climate
* for nextWeather. The other weather parameters are then looked up depending only on the
* next weather.
*/
+1 -1
View File
@@ -1258,7 +1258,7 @@ static void footpath_fix_ownership(const CoordsXY& mapPos)
{
ownership = OWNERSHIP_UNOWNED;
}
// If the tile is safe to own construction rights of, do not erase contruction rights.
// If the tile is safe to own construction rights of, do not erase construction rights.
else
{
ownership = surfaceElement->GetOwnership();
+1 -1
View File
@@ -89,7 +89,7 @@ enum
FOOTPATH_PROPERTIES_TYPE_MASK = (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7),
};
// Masks and flags for values stored in in TileElement.properties.path.edges
// Masks and flags for values stored in TileElement.properties.path.edges
enum
{
FOOTPATH_PROPERTIES_EDGES_EDGES_MASK = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3),
+1 -1
View File
@@ -121,7 +121,7 @@ void SmallSceneryElement::IncreaseAge(const CoordsXY& sceneryPos)
{
uint8_t newAge = age++;
// Only invalidate tiles when scenery crosses the withering threshholds, and can be withered.
// Only invalidate tiles when scenery crosses the withering thresholds, and can be withered.
if (newAge == SCENERY_WITHER_AGE_THRESHOLD_1 || newAge == SCENERY_WITHER_AGE_THRESHOLD_2)
{
rct_scenery_entry* entry = GetEntry();
+4 -4
View File
@@ -388,21 +388,21 @@ static uint8_t TestTrackElementPaintCalls(uint8_t rideType, uint8_t trackType, u
std::vector<function_call> newCalls;
newCalls.insert(newCalls.begin(), callBuffer, callBuffer + callCount);
bool sucess = true;
bool success = true;
if (oldCalls.size() != newCalls.size())
{
*error += String::Format(
"Call counts don't match (was %d, expected %d). %s\n", newCalls.size(), oldCalls.size(),
caseName.c_str());
sucess = false;
success = false;
}
else if (!FunctionCall::AssertsEquals(oldCalls, newCalls))
{
*error += String::Format("Calls don't match. %s\n", caseName.c_str());
sucess = false;
success = false;
}
if (!sucess)
if (!success)
{
*error += " Expected:\n";
*error += Printer::PrintFunctionCalls(oldCalls, height);
+2 -2
View File
@@ -110,7 +110,7 @@ TEST_F(PlayTests, SecondGuestInQueueShouldNotRideIfNoFunds)
ride_set_status(&ferrisWheel, RIDE_STATUS_OPEN);
execute<RideSetPriceAction>(ferrisWheel.id, 0, true);
// Ignore intesity to stimulate peeps to queue into ferris wheel
// Ignore intensity to stimulate peeps to queue into ferris wheel
gCheatsIgnoreRideIntensity = true;
// Insert a rich guest
@@ -170,7 +170,7 @@ TEST_F(PlayTests, CarRideWithOneCarOnlyAcceptsTwoGuests)
ride_set_status(&carRide, RIDE_STATUS_OPEN);
execute<RideSetPriceAction>(carRide.id, 0, true);
// Ignore intesity to stimulate peeps to queue into the ride
// Ignore intensity to stimulate peeps to queue into the ride
gCheatsIgnoreRideIntensity = true;
// Create some guests
+1 -1
View File
@@ -83,7 +83,7 @@ TEST_F(SawyerCodingTest, write_read_chunk_rotate)
// Note we only check if provided data decompresses to the same data, not if it compresses the same.
// The reason for that is we may improve encoding at some point, but the test won't be affected,
// as we already do a decode test and rountrip (encode + decode), which validates all uses.
// as we already do a decode test and roundtrip (encode + decode), which validates all uses.
TEST_F(SawyerCodingTest, decode_chunk_none)
{