From 728b632960b769fa7209b826913f63d5276e4666 Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 10 Jul 2023 20:49:13 +0200 Subject: [PATCH] fix typos --- Source/levels/drlg_l3.cpp | 4 ++-- Source/pfile.cpp | 4 ++-- Source/portal.cpp | 2 +- Source/stores.cpp | 14 +++++++------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Source/levels/drlg_l3.cpp b/Source/levels/drlg_l3.cpp index 03bb0e172..f809451b3 100644 --- a/Source/levels/drlg_l3.cpp +++ b/Source/levels/drlg_l3.cpp @@ -1502,12 +1502,12 @@ bool PlacePool() } /** - * @brief Fill lava pools correctly, cause River() only generates the edges. + * @brief Fill lava pools correctly, because River() only generates the edges. */ void PoolFix() { for (Point tile : PointsInRectangle(Rectangle { { 1, 1 }, { DMAXX - 2, DMAXY - 2 } })) { - // Check if the tile is a the default dirt ceiling tile + // Check if the tile is the default dirt ceiling tile if (dungeon[tile.x][tile.y] != 8) continue; diff --git a/Source/pfile.cpp b/Source/pfile.cpp index 1c169cc39..7f25e28f9 100644 --- a/Source/pfile.cpp +++ b/Source/pfile.cpp @@ -298,9 +298,9 @@ void CreateDetailDiffs(string_view prefix, string_view memoryMapFile, CompareInf auto compareBytes = [&](size_t countBytes) { if (compareInfoReference.dataExists && compareInfoReference.currentPosition + countBytes > compareInfoReference.size) - app_fatal(StrCat("Comparsion failed. Too less bytes in reference to compare. Location: ", prefix)); + app_fatal(StrCat("Comparison failed. Not enough bytes in reference to compare. Location: ", prefix)); if (compareInfoActual.dataExists && compareInfoActual.currentPosition + countBytes > compareInfoActual.size) - app_fatal(StrCat("Comparsion failed. Too less bytes in actual to compare. Location: ", prefix)); + app_fatal(StrCat("Comparison failed. Not enough bytes in actual to compare. Location: ", prefix)); bool result = true; if (compareInfoReference.dataExists && compareInfoActual.dataExists) result = memcmp(compareInfoReference.data.get() + compareInfoReference.currentPosition, compareInfoActual.data.get() + compareInfoActual.currentPosition, countBytes) == 0; diff --git a/Source/portal.cpp b/Source/portal.cpp index 2695efd2a..4cf636a97 100644 --- a/Source/portal.cpp +++ b/Source/portal.cpp @@ -21,7 +21,7 @@ namespace { /** Current portal number (a portal array index). */ size_t portalindex; -/** Coordinate of each players portal in town. */ +/** Coordinate of each player's portal in town. */ Point PortalTownPosition[MAXPORTAL] = { { 57, 40 }, { 59, 40 }, diff --git a/Source/stores.cpp b/Source/stores.cpp index b8b88e7b7..b8a95ae0a 100644 --- a/Source/stores.cpp +++ b/Source/stores.cpp @@ -105,23 +105,23 @@ bool RenderGold; /** Does the current panel have a scrollbar */ bool stextscrl; -/** Remember last scoll position */ +/** Remember last scroll position */ int stextvhold; -/** Scoll position */ +/** Scroll position */ int stextsval; -/** Next scoll position */ +/** Next scroll position */ int stextdown; -/** Previous scoll position */ +/** Previous scroll position */ int stextup; -/** Count down for the push state of the scroll up button */ +/** Countdown for the push state of the scroll up button */ int8_t stextscrlubtn; -/** Count down for the push state of the scroll down button */ +/** Countdown for the push state of the scroll down button */ int8_t stextscrldbtn; /** Remember current store while displaying a dialog */ TalkID stextshold; -/** Temporary item used to hold the the item being traided */ +/** Temporary item used to hold the item being traded */ Item StoreItem; /** Maps from towner IDs to NPC names. */