Browse Source

fix typos

pull/2899/head
qndel 5 years ago committed by Gleb Mazovetskiy
parent
commit
0569dba547
  1. 2
      Source/missiles.cpp
  2. 2
      Source/pack.h
  3. 6
      Source/panels/mainpanel.cpp
  4. 2
      Source/player.h
  5. 2
      docs/debug.md

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

2
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);

6
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)

2
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;
/**

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

Loading…
Cancel
Save