From 2aa39192147a5d20e4f404317b8799f6cf4dd169 Mon Sep 17 00:00:00 2001 From: qndel Date: Tue, 2 Jan 2024 21:24:34 +0100 Subject: [PATCH] fix typos (#2291) --- Source/engine.cpp | 4 ++-- Source/pack.cpp | 4 ++-- structs.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/engine.cpp b/Source/engine.cpp index 654a78ee3..12737cf1f 100644 --- a/Source/engine.cpp +++ b/Source/engine.cpp @@ -2627,7 +2627,7 @@ void mem_free_dbg(void *p) } /** - * @brief Load a file in to a buffer + * @brief Load a file into a buffer * @param pszName Path of file * @param pdwFileLen Will be set to file size if non-NULL * @return Buffer with content of file @@ -2656,7 +2656,7 @@ BYTE *LoadFileInMem(const char *pszName, DWORD *pdwFileLen) } /** - * @brief Load a file in to the given buffer + * @brief Load a file into the given buffer * @param pszName Path of file * @param p Target buffer * @return Size of file diff --git a/Source/pack.cpp b/Source/pack.cpp index 65096ac34..765441e41 100644 --- a/Source/pack.cpp +++ b/Source/pack.cpp @@ -135,12 +135,12 @@ void PackPlayer(PkPlayerStruct *pPack, int pnum, BOOL manashield) } /** - * Expand a PkItemStruct in to a ItemStruct + * Expand a PkItemStruct into an ItemStruct * * Note: last slot of item[MAXITEMS+1] used as temporary buffer * find real name reference below, possibly [sizeof(item[])/sizeof(ItemStruct)] * @param is The source packed item - * @param id The distination item + * @param id The destination item */ #ifndef HELLFIRE static diff --git a/structs.h b/structs.h index 322c3a689..86e8dfa01 100644 --- a/structs.h +++ b/structs.h @@ -582,7 +582,7 @@ typedef struct MonsterStruct { // note: missing field _mAFNum int _mxvel; // Pixel X-velocity while walking. Applied to _mxoff int _myvel; // Pixel Y-velocity while walking. Applied to _myoff int _mdir; // Direction faced by monster (direction enum) - int _menemy; // The current target of the mosnter. An index in to either the plr or monster array based on the _meflag value. + int _menemy; // The current target of the monster. An index into either the plr or monster array based on the _meflag value. unsigned char _menemyx; // X-coordinate of enemy (usually correspond's to the enemy's futx value) unsigned char _menemyy; // Y-coordinate of enemy (usually correspond's to the enemy's futy value) short falign_52; // probably _mAFNum (unused)