Browse Source

fix typos

pull/6458/head
qndel 3 years ago committed by Anders Jenbo
parent
commit
728b632960
  1. 4
      Source/levels/drlg_l3.cpp
  2. 4
      Source/pfile.cpp
  3. 2
      Source/portal.cpp
  4. 14
      Source/stores.cpp

4
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;

4
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;

2
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 },

14
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. */

Loading…
Cancel
Save