Browse Source

fix typos

pull/5361/head
qndel 4 years ago committed by Anders Jenbo
parent
commit
c05c4c0f55
  1. 8
      Source/automap.cpp
  2. 2
      Source/diablo.cpp
  3. 2
      Source/msg.cpp
  4. 4
      Source/msg.h

8
Source/automap.cpp

@ -51,7 +51,7 @@ struct AutomapTile {
CaveHorizontal,
CaveVertical,
CaveCross,
Bridg,
Bridge,
River,
RiverCornerEast,
RiverCornerNorth,
@ -148,7 +148,7 @@ void DrawDirt(const Surface &out, Point center, uint8_t color)
out.SetPixel({ center.x - AmLine(8) + AmLine(32), center.y + AmLine(4) }, color);
}
void DrawBridg(const Surface &out, Point center, uint8_t color)
void DrawBridge(const Surface &out, Point center, uint8_t color)
{
out.SetPixel(center, color);
@ -536,8 +536,8 @@ void DrawAutomapTile(const Surface &out, Point center, Point map)
case AutomapTile::Types::Corner:
case AutomapTile::Types::None:
break;
case AutomapTile::Types::Bridg:
DrawBridg(out, center, MapColorsItem);
case AutomapTile::Types::Bridge:
DrawBridge(out, center, MapColorsItem);
break;
case AutomapTile::Types::River:
DrawRiver(out, center, MapColorsItem);

2
Source/diablo.cpp

@ -2332,7 +2332,7 @@ void game_loop(bool bStartup)
}
TimeoutCursor(false);
GameLogic();
ClearLastSendPlayerCmd();
ClearLastSentPlayerCmd();
if (!gbRunGame || !gbIsMultiplayer || demo::IsRunning() || demo::IsRecording() || !nthread_has_500ms_passed())
break;

2
Source/msg.cpp

@ -2382,7 +2382,7 @@ size_t OnOpenCrypt(const TCmd *pCmd)
} // namespace
void ClearLastSendPlayerCmd()
void ClearLastSentPlayerCmd()
{
lastSentPlayerCmd = {};
}

4
Source/msg.h

@ -752,8 +752,8 @@ bool IsValidLevel(uint8_t level, bool isSetLevel);
void DeltaAddItem(int ii);
void DeltaSaveLevel();
void DeltaLoadLevel();
/** @brief Clears last send player command for the local player. This is used when a game tick changes. */
void ClearLastSendPlayerCmd();
/** @brief Clears last sent player command for the local player. This is used when a game tick changes. */
void ClearLastSentPlayerCmd();
void NetSendCmd(bool bHiPri, _cmd_id bCmd);
void NetSendCmdGolem(uint8_t mx, uint8_t my, Direction dir, uint8_t menemy, int hp, uint8_t cl);
void NetSendCmdLoc(size_t playerId, bool bHiPri, _cmd_id bCmd, Point position);

Loading…
Cancel
Save