From 0569dba5472f8b675de5046bfd8d503f00f2be44 Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 19 Sep 2021 09:45:28 +0200 Subject: [PATCH] fix typos --- Source/missiles.cpp | 2 +- Source/pack.h | 2 +- Source/panels/mainpanel.cpp | 6 +++--- Source/player.h | 2 +- docs/debug.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 97614ccaa..e9e6106e9 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -647,7 +647,7 @@ void MoveMissileAndCheckMissileCol(Missile &missile, int mindam, int maxdam, boo if (tile == missile.position.tile) break; - // don't call CheckMissileCol more then once for a tile + // don't call CheckMissileCol more than once for a tile if (prevTile == tile) continue; prevTile = tile; diff --git a/Source/pack.h b/Source/pack.h index 888d61160..72c7b8fd3 100644 --- a/Source/pack.h +++ b/Source/pack.h @@ -89,7 +89,7 @@ void PackItem(ItemPack *id, const Item *is); * Note: last slot of item[MAXITEMS+1] used as temporary buffer * find real name reference below, possibly [sizeof(item[])/sizeof(Item)] * @param is The source packed item - * @param id The distination item + * @param id The destination item */ void UnPackItem(const ItemPack *is, Item *id, bool isHellfire); diff --git a/Source/panels/mainpanel.cpp b/Source/panels/mainpanel.cpp index bb50dc861..09e12cc37 100644 --- a/Source/panels/mainpanel.cpp +++ b/Source/panels/mainpanel.cpp @@ -19,10 +19,10 @@ Art PanelButton; Art PanelButtonGrime; Art PanelButtonDownGrime; -void DrawButtonText(const Surface &out, const char *text, Rectangle placment, UiFlags style, int spacing = 1) +void DrawButtonText(const Surface &out, const char *text, Rectangle placement, UiFlags style, int spacing = 1) { - DrawString(out, text, { placment.position + Displacement { 0, 1 }, placment.size }, UiFlags::AlignCenter | UiFlags::KerningFitSpacing | UiFlags::ColorBlack, spacing); - DrawString(out, text, placment, UiFlags::AlignCenter | UiFlags::KerningFitSpacing | style, spacing); + DrawString(out, text, { placement.position + Displacement { 0, 1 }, placement.size }, UiFlags::AlignCenter | UiFlags::KerningFitSpacing | UiFlags::ColorBlack, spacing); + DrawString(out, text, placement, UiFlags::AlignCenter | UiFlags::KerningFitSpacing | style, spacing); } void DrawButtonOnPanel(Point position, const char *text, int frame) diff --git a/Source/player.h b/Source/player.h index 70fe77858..b609b13e1 100644 --- a/Source/player.h +++ b/Source/player.h @@ -376,7 +376,7 @@ struct Player { /** * @brief Says a speech line. - * @todo BUGFIX Prevent more then one speech to be played at a time (reject new requests). + * @todo BUGFIX Prevent more than one speech to be played at a time (reject new requests). */ void Say(HeroSpeech speechId) const; /** diff --git a/docs/debug.md b/docs/debug.md index 3b6c995c9..48928a841 100644 --- a/docs/debug.md +++ b/docs/debug.md @@ -5,7 +5,7 @@ If you compile the game in debug, you have multiple debug features available. ## Debug commands In-game you have the possibility to use the chat to trigger debug commands. -This is currently a replacment for a console. +This is currently a replacement for a console. | Command | Description | | ------- | ----------- |