1.1 --- a/core/AdminCache.cpp Wed May 02 22:49:28 2007 +0000
1.2 +++ b/core/AdminCache.cpp Thu May 03 03:45:53 2007 +0000
1.3 @@ -1184,7 +1184,7 @@
1.4 {
1.5 /**
1.6 * Zeroth, if the targeting AdminId is INVALID_ADMIN_ID, targeting fails.
1.7 - * First, if the targetted AdminId is INVALID_ADMIN_ID, targeting succeeds.
1.8 + * First, if the targeted AdminId is INVALID_ADMIN_ID, targeting succeeds.
1.9 */
1.10
1.11 if (id == INVALID_ADMIN_ID)
1.12 @@ -1210,21 +1210,21 @@
1.13 }
1.14
1.15 /**
1.16 - * Second, if the targeting admin is root, targeting suceeds.
1.17 + * Second, if the targeting admin is root, targeting succeeds.
1.18 */
1.19 if (pUser->eflags & ADMFLAG_ROOT)
1.20 {
1.21 return true;
1.22 }
1.23
1.24 - /** Fourth, if the targetted admin has global immunity, targeting fails. */
1.25 + /** Fourth, if the targeted admin has global immunity, targeting fails. */
1.26 if (pTarget->immune_global)
1.27 {
1.28 return false;
1.29 }
1.30
1.31 /**
1.32 - * Fifth, if the targetted admin has default immunity
1.33 + * Fifth, if the targeted admin has default immunity
1.34 * and the admin belongs to no groups, targeting fails.
1.35 */
1.36 if (pTarget->immune_default && pUser->grp_count < 1)
1.37 @@ -1233,7 +1233,7 @@
1.38 }
1.39
1.40 /**
1.41 - * Sixth, if the targetted admin has specific immunity from the
1.42 + * Sixth, if the targeted admin has specific immunity from the
1.43 * targeting admin via group immunities, targeting fails.
1.44 */
1.45 //:TODO: speed this up... maybe with trie hacks.
2.1 --- a/core/AdminCache.h Wed May 02 22:49:28 2007 +0000
2.2 +++ b/core/AdminCache.h Thu May 03 03:45:53 2007 +0000
2.3 @@ -35,7 +35,7 @@
2.4 uint32_t magic; /* Magic flag, for memory validation (ugh) */
2.5 bool immune_global; /* Global immunity? */
2.6 bool immune_default; /* Default immunity? */
2.7 - /* Immune from target table (-1 = nonexistant)
2.8 + /* Immune from target table (-1 = nonexistent)
2.9 * [0] = number of entries
2.10 * [1...N] = immune targets
2.11 */
2.12 @@ -70,8 +70,8 @@
2.13 unsigned int grp_count; /* Number of groups */
2.14 unsigned int grp_size; /* Size of groups table */
2.15 int grp_table; /* Group table itself */
2.16 - int next_user; /* Next user in ze list */
2.17 - int prev_user; /* Prev user in the list */
2.18 + int next_user; /* Next user in the list */
2.19 + int prev_user; /* Previous user in the list */
2.20 UserAuth auth; /* Auth method for this user */
2.21 bool immune_global; /* Whether globally immune */
2.22 bool immune_default; /* Whether defaultly immune */
3.1 --- a/core/ConCmdManager.cpp Wed May 02 22:49:28 2007 +0000
3.2 +++ b/core/ConCmdManager.cpp Thu May 03 03:45:53 2007 +0000
3.3 @@ -910,7 +910,7 @@
3.4 {
3.5 if (strcasecmp(arg, "mock") == 0)
3.6 {
3.7 - g_RootMenu.ConsolePrint("You mock BAILOPAN's pronounciation. In a fit of rage, ");
3.8 + g_RootMenu.ConsolePrint("You mock BAILOPAN's pronunciation. In a fit of rage, ");
3.9 g_RootMenu.ConsolePrint("he sticks an INT 3 call into your chest, rendering you broken.");
3.10 g_RootMenu.ConsolePrint("YOU HAVE DIED. GAME OVER.");
3.11 g_yam_state = 0;
4.1 --- a/core/ConVarManager.cpp Wed May 02 22:49:28 2007 +0000
4.2 +++ b/core/ConVarManager.cpp Thu May 03 03:45:53 2007 +0000
4.3 @@ -301,7 +301,7 @@
4.4 /* If we don't have a handle, then create a new one */
4.5 hndl = g_HandleSys.CreateHandle(m_ConVarType, pConVar, NULL, g_pCoreIdent, NULL);
4.6
4.7 - /* Create and initilize ConVarInfo structure */
4.8 + /* Create and initialize ConVarInfo structure */
4.9 pInfo = new ConVarInfo();
4.10 pInfo->handle = hndl;
4.11 pInfo->sourceMod = false;
5.1 --- a/core/CoreConfig.cpp Wed May 02 22:49:28 2007 +0000
5.2 +++ b/core/CoreConfig.cpp Thu May 03 03:45:53 2007 +0000
5.3 @@ -79,7 +79,7 @@
5.4 }
5.5
5.6 /* Format path to config file */
5.7 - g_LibSys.PathFormat(filePath, sizeof(filePath), "%s/%s", g_SourceMod.GetModPath(), corecfg);
5.8 + g_LibSys.PathFormat(filePath, sizeof(filePath), "%s/%s", g_SourceMod.GetGamePath(), corecfg);
5.9
5.10 /* Parse config file */
5.11 if ((err=g_TextParser.ParseFile_SMC(filePath, this, NULL, NULL)) != SMCParse_Okay)
6.1 --- a/core/GameConfigs.cpp Wed May 02 22:49:28 2007 +0000
6.2 +++ b/core/GameConfigs.cpp Thu May 03 03:45:53 2007 +0000
6.3 @@ -301,7 +301,7 @@
6.4 {
6.5 LoadGameConfigFile("core.games", &g_pGameConf, NULL, 0);
6.6
6.7 - strncopy(g_mod, g_SourceMod.GetModFolderName(), sizeof(g_mod));
6.8 + strncopy(g_mod, g_SourceMod.GetGameFolderName(), sizeof(g_mod));
6.9 }
6.10
6.11 void GameConfigManager::OnSourceModAllInitialized()
7.1 --- a/core/HalfLife2.cpp Wed May 02 22:49:28 2007 +0000
7.2 +++ b/core/HalfLife2.cpp Thu May 03 03:45:53 2007 +0000
7.3 @@ -72,7 +72,7 @@
7.4 void CHalfLife2::OnSourceModStartup(bool late)
7.5 {
7.6 /* The Ship currently is the only known game to use an older version of the engine */
7.7 - if (strcasecmp(g_SourceMod.GetModFolderName(), "ship") == 0)
7.8 + if (strcasecmp(g_SourceMod.GetGameFolderName(), "ship") == 0)
7.9 {
7.10 /* :TODO: Better engine versioning - perhaps something added to SourceMM? */
7.11 g_IsOriginalEngine = true;
8.1 --- a/core/PlayerManager.cpp Wed May 02 22:49:28 2007 +0000
8.2 +++ b/core/PlayerManager.cpp Thu May 03 03:45:53 2007 +0000
8.3 @@ -158,7 +158,7 @@
8.4 /* Clean up the queue */
8.5 if (removed)
8.6 {
8.7 - /* We don't have to compcat the list if it's empty */
8.8 + /* We don't have to compact the list if it's empty */
8.9 if (removed != m_AuthQueue[0])
8.10 {
8.11 unsigned int diff = 0;
9.1 --- a/core/sm_trie.cpp Wed May 02 22:49:28 2007 +0000
9.2 +++ b/core/sm_trie.cpp Thu May 03 03:45:53 2007 +0000
9.3 @@ -21,7 +21,7 @@
9.4 * Double Array Trie algorithm, based on:
9.5 * An Efficient Implementation of Trie Structures, by
9.6 * Jun-ichi Aoe and Katsushi Maromoto, and Takashi Sato
9.7 - * from Sofiware - Practice and Experience, Vol. 22(9), 695-721 (September 1992)
9.8 + * from Software - Practice and Experience, Vol. 22(9), 695-721 (September 1992)
9.9 *
9.10 * A Trie is a simple data structure which stores strings as DFAs, with each
9.11 * transition state being a string entry. For example, observe the following strings:
9.12 @@ -47,7 +47,7 @@
9.13 *
9.14 * BASE[] is an array where each member is a node in the Trie. The node can either be UNUSED (empty), an ARC
9.15 * (containing an offset to the next set of ARCs), or a TERMINATOR (contains the rest of a string).
9.16 - * Each node has an index which must be interpeted based on the node type. If the node is a TERMINATOR, then the
9.17 + * Each node has an index which must be interpreted based on the node type. If the node is a TERMINATOR, then the
9.18 * index is an index into a string table, to find the rest of the string.
9.19 * If the node is an ARC, the index is another index into BASE. For each possible token that can follow the
9.20 * current token, the value of those tokens can be added to the index given in the ARC. Thus, given a current
10.1 --- a/core/smn_halflife.cpp Wed May 02 22:49:28 2007 +0000
10.2 +++ b/core/smn_halflife.cpp Thu May 03 03:45:53 2007 +0000
10.3 @@ -142,7 +142,7 @@
10.4
10.5 static cell_t GetGameFolderName(IPluginContext *pContext, const cell_t *params)
10.6 {
10.7 - const char *name = g_SourceMod.GetModFolderName();
10.8 + const char *name = g_SourceMod.GetGameFolderName();
10.9 size_t numBytes;
10.10
10.11 pContext->StringToLocalUTF8(params[1], params[2], name, &numBytes);
11.1 --- a/core/sourcemod.cpp Wed May 02 22:49:28 2007 +0000
11.2 +++ b/core/sourcemod.cpp Thu May 03 03:45:53 2007 +0000
11.3 @@ -449,7 +449,7 @@
11.4 const char *base = NULL;
11.5 if (type == Path_Game)
11.6 {
11.7 - base = GetModPath();
11.8 + base = GetGamePath();
11.9 } else if (type == Path_SM) {
11.10 base = GetSourceModPath();
11.11 } else if (type == Path_SM_Rel) {
11.12 @@ -580,7 +580,7 @@
11.13 return m_SMBaseDir;
11.14 }
11.15
11.16 -const char *SourceModBase::GetModPath() const
11.17 +const char *SourceModBase::GetGamePath() const
11.18 {
11.19 return g_BaseDir.c_str();
11.20 }
11.21 @@ -625,7 +625,7 @@
11.22 return 0;
11.23 }
11.24
11.25 -const char *SourceModBase::GetModFolderName() const
11.26 +const char *SourceModBase::GetGameFolderName() const
11.27 {
11.28 return m_ModDir;
11.29 }
12.1 --- a/core/sourcemod.h Wed May 02 22:49:28 2007 +0000
12.2 +++ b/core/sourcemod.h Thu May 03 03:45:53 2007 +0000
12.3 @@ -84,7 +84,7 @@
12.4 char *error,
12.5 size_t maxlength);
12.6 public: // ISourceMod
12.7 - const char *GetModPath() const;
12.8 + const char *GetGamePath() const;
12.9 const char *GetSourceModPath() const;
12.10 size_t BuildPath(PathType type, char *buffer, size_t maxlength, char *format, ...);
12.11 void LogMessage(IExtension *pExt, const char *format, ...);
12.12 @@ -94,7 +94,7 @@
12.13 void FreeDataPack(IDataPack *pack);
12.14 HandleType_t GetDataPackHandleType(bool readonly=false);
12.15 KeyValues *ReadKeyValuesHandle(Handle_t hndl, HandleError *err=NULL, bool root=false);
12.16 - const char *GetModFolderName() const;
12.17 + const char *GetGameFolderName() const;
12.18 private:
12.19 /**
12.20 * @brief Loading plugins
13.1 --- a/core/systems/ForwardSys.cpp Wed May 02 22:49:28 2007 +0000
13.2 +++ b/core/systems/ForwardSys.cpp Thu May 03 03:45:53 2007 +0000
13.3 @@ -1,4 +1,4 @@
13.4 -/**
13.5 +Genesis/**
13.6 * vim: set ts=4 :
13.7 * ===============================================================
13.8 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
13.9 @@ -22,7 +22,7 @@
13.10 CForwardManager g_Forwards;
13.11
13.12 /**
13.13 - * Gensis turns to its source, reduction occurs stepwise although the essence is all one.
13.14 + * Genesis turns to its source, reduction occurs stepwise although the essence is all one.
13.15 * End of line. FTL system check.
13.16 *
13.17 * :TODO: WHAT NEEDS TO BE TESTED IN THIS BEAST
14.1 --- a/core/systems/HandleSys.h Wed May 02 22:49:28 2007 +0000
14.2 +++ b/core/systems/HandleSys.h Thu May 03 03:45:53 2007 +0000
14.3 @@ -157,7 +157,7 @@
14.4 bool identity=false);
14.5
14.6 /**
14.7 - * Frees a primitive handle. Does no object freeing, only reference count, bookkeepping,
14.8 + * Frees a primitive handle. Does no object freeing, only reference count, bookkeeping,
14.9 * and linked list maintenance.
14.10 * If used on an Identity handle, destroys all Handles under that identity.
14.11 */
15.1 --- a/public/IAdminSystem.h Wed May 02 22:49:28 2007 +0000
15.2 +++ b/public/IAdminSystem.h Thu May 03 03:45:53 2007 +0000
15.3 @@ -148,12 +148,12 @@
15.4 typedef int AdminId;
15.5
15.6 /**
15.7 - * @brief Represents an invalid/nonexistant group or an erroneous operation.
15.8 + * @brief Represents an invalid/nonexistent group or an erroneous operation.
15.9 */
15.10 #define INVALID_GROUP_ID -1
15.11
15.12 /**
15.13 - * @brief Represents an invalid/nonexistant user or an erroneous operation.
15.14 + * @brief Represents an invalid/nonexistent user or an erroneous operation.
15.15 */
15.16 #define INVALID_ADMIN_ID -1
15.17
15.18 @@ -571,12 +571,12 @@
15.19 * @brief Checks whether an AdminId can target another AdminId.
15.20 *
15.21 * Zeroth, if the targeting AdminId is INVALID_ADMIN_ID, targeting fails.
15.22 - * First, if the targetted AdminId is INVALID_ADMIN_ID, targeting succeeds.
15.23 - * Second, if the targeting admin is root, targeting suceeds.
15.24 - * Third, if the targetted admin has global immunity, targeting fails.
15.25 - * Fourth, if the targetted admin has default immunity,
15.26 + * First, if the targeted AdminId is INVALID_ADMIN_ID, targeting succeeds.
15.27 + * Second, if the targeting admin is root, targeting succeeds.
15.28 + * Third, if the targeted admin has global immunity, targeting fails.
15.29 + * Fourth, if the targeted admin has default immunity,
15.30 * and the admin belongs to no groups, targeting fails.
15.31 - * Fifth, if the targetted admin has specific immunity from the
15.32 + * Fifth, if the targeted admin has specific immunity from the
15.33 * targeting admin via group immunities, targeting fails.
15.34 * Sixth, targeting succeeds if it passes these tests.
15.35 *
16.1 --- a/public/IExtensionSys.h Wed May 02 22:49:28 2007 +0000
16.2 +++ b/public/IExtensionSys.h Thu May 03 03:45:53 2007 +0000
16.3 @@ -175,7 +175,7 @@
16.4 }
16.5
16.6 /**
16.7 - * @brief Return false to tell Core that your extension should be considered unsable.
16.8 + * @brief Return false to tell Core that your extension should be considered usable.
16.9 *
16.10 * @param error Error buffer.
16.11 * @param maxlength Size of error buffer.
17.1 --- a/public/IForwardSys.h Wed May 02 22:49:28 2007 +0000
17.2 +++ b/public/IForwardSys.h Thu May 03 03:45:53 2007 +0000
17.3 @@ -208,9 +208,9 @@
17.4
17.5 /**
17.6 * @brief Adds a function to the call list.
17.7 - * NOTE: Cannot be used during an incompleted call.
17.8 + * NOTE: Cannot be used during an incomplete call.
17.9 * NOTE: If used during a call, function is temporarily queued until calls are over.
17.10 - * NOTE: Adding mulitple copies of the same function is illegal.
17.11 + * NOTE: Adding multiple copies of the same function is illegal.
17.12 *
17.13 * @param func Function to add.
17.14 * @return True on success, otherwise false.
17.15 @@ -219,7 +219,7 @@
17.16
17.17 /**
17.18 * @brief Adds a function to the call list.
17.19 - * NOTE: Cannot be used during an incompleted call.
17.20 + * NOTE: Cannot be used during an incomplete call.
17.21 * NOTE: If used during a call, function is temporarily queued until calls are over.
17.22 *
17.23 * @param ctx Context to use as a look-up.
18.1 --- a/public/IPlayerHelpers.h Wed May 02 22:49:28 2007 +0000
18.2 +++ b/public/IPlayerHelpers.h Thu May 03 03:45:53 2007 +0000
18.3 @@ -176,7 +176,7 @@
18.4 }
18.5
18.6 /**
18.7 - * @brief Called when a client has recieved authorization.
18.8 + * @brief Called when a client has received authorization.
18.9 *
18.10 * @param client Index of the client.
18.11 * @param authstring Authorization string.
19.1 --- a/public/ISourceMod.h Wed May 02 22:49:28 2007 +0000
19.2 +++ b/public/ISourceMod.h Thu May 03 03:45:53 2007 +0000
19.3 @@ -20,7 +20,7 @@
19.4
19.5 /**
19.6 * @file ISourceMod.h
19.7 - * @brief Defines miscellanious helper functions useful to extensions.
19.8 + * @brief Defines miscellaneous helper functions useful to extensions.
19.9 */
19.10
19.11 #include <IHandleSys.h>
19.12 @@ -64,11 +64,11 @@
19.13 }
19.14 public:
19.15 /**
19.16 - * @brief Returns the full path to the mod directory.
19.17 + * @brief Returns the full path to the game directory.
19.18 *
19.19 - * @return A string containing the full mod path.
19.20 + * @return A string containing the full game path.
19.21 */
19.22 - virtual const char *GetModPath() const =0;
19.23 + virtual const char *GetGamePath() const =0;
19.24
19.25 /**
19.26 * @brief Returns the full path to the SourceMod directory.
19.27 @@ -111,7 +111,7 @@
19.28 * @brief Formats a string from a native.
19.29 *
19.30 * @param buffer Buffer to store message.
19.31 - * @param maxlength Maximum length of buffer (inculding null terminator).
19.32 + * @param maxlength Maximum length of buffer (including null terminator).
19.33 * @param pContext Pointer to the plugin's context.
19.34 * @param params Parameter array that was passed to the native.
19.35 * @param param Parameter index where format string and variable arguments begin.
19.36 @@ -141,12 +141,12 @@
19.37 /**
19.38 * @brief Returns the automated data pack handle type.
19.39 *
19.40 - * The readonly data type is the parent of the writable type.
19.41 + * The read-only data type is the parent of the writable type.
19.42 * Note that calling CloseHandle() on either type will release the data pack.
19.43 - * The readonly type is inheritable, but due to limitations of the Handle System,
19.44 + * The read-only type is inheritable, but due to limitations of the Handle System,
19.45 * the writable type is not.
19.46 *
19.47 - * @param readonly If true, the readonly type will be returned.
19.48 + * @param readonly If true, the read-only type will be returned.
19.49 * @return The Handle type for storing generic data packs.
19.50 */
19.51 virtual HandleType_t GetDataPackHandleType(bool readonly=false) =0;
19.52 @@ -163,11 +163,11 @@
19.53 virtual KeyValues *ReadKeyValuesHandle(Handle_t hndl, HandleError *err=NULL, bool root=false) =0;
19.54
19.55 /**
19.56 - * @brief Returns the name of the directory in which the mod or game's gameinfo.txt resides.
19.57 + * @brief Returns the name of the game directory.
19.58 *
19.59 - * @return A string containing the name of the mod directory.
19.60 + * @return A string containing the name of the game directory.
19.61 */
19.62 - virtual const char *GetModFolderName() const =0;
19.63 + virtual const char *GetGameFolderName() const =0;
19.64 };
19.65 }
19.66
20.1 --- a/public/ITextParsers.h Wed May 02 22:49:28 2007 +0000
20.2 +++ b/public/ITextParsers.h Thu May 03 03:45:53 2007 +0000
20.3 @@ -50,7 +50,7 @@
20.4 * Where KEY is an IDENTIFIER and VALUE is a STRING.
20.5 *
20.6 * WHITESPACE should always be omitted.
20.7 - * COMMENTS should be stripped, and are defined as text occuring in:
20.8 + * COMMENTS should be stripped, and are defined as text occurring in:
20.9 * ;<TEXT>
20.10 *
20.11 * Example file below. Note that
20.12 @@ -161,7 +161,7 @@
20.13 * For an example, see configs/permissions.cfg
20.14 *
20.15 * WHITESPACE should be ignored.
20.16 - * Comments are text occuring inside the following tokens, and should be stripped
20.17 + * Comments are text occurring inside the following tokens, and should be stripped
20.18 * unless they are inside literal strings:
20.19 * ;<TEXT>
20.20 * //<TEXT>
20.21 @@ -308,7 +308,7 @@
20.22 * @param ini_listener Event handler for reading file.
20.23 * @param line If non-NULL, will contain last line parsed (0 if file could not be opened).
20.24 * @param col If non-NULL, will contain last column parsed (undefined if file could not be opened).
20.25 - * @return True if parsing succeded, false if file couldn't be opened or there was a syntax error.
20.26 + * @return True if parsing succeeded, false if file couldn't be opened or there was a syntax error.
20.27 */
20.28 virtual bool ParseFile_INI(const char *file,
20.29 ITextListener_INI *ini_listener,
20.30 @@ -333,7 +333,7 @@
20.31 unsigned int *col) =0;
20.32
20.33 /**
20.34 - * @brief Converts an SMCParseError to a stirng.
20.35 + * @brief Converts an SMCParseError to a string.
20.36 *
20.37 * @param err SMCParseError.
20.38 * @return String error message, or NULL if none.
21.1 --- a/public/sourcepawn/sp_vm_types.h Wed May 02 22:49:28 2007 +0000
21.2 +++ b/public/sourcepawn/sp_vm_types.h Thu May 03 03:45:53 2007 +0000
21.3 @@ -45,7 +45,7 @@
21.4 #define SP_ERROR_INVALID_ADDRESS 5 /**< A memory address was not valid */
21.5 #define SP_ERROR_NOT_FOUND 6 /**< The object in question was not found */
21.6 #define SP_ERROR_INDEX 7 /**< Invalid index parameter */
21.7 -#define SP_ERROR_STACKLOW 8 /**< Nnot enough space left on the stack */
21.8 +#define SP_ERROR_STACKLOW 8 /**< Not enough space left on the stack */
21.9 #define SP_ERROR_NOTDEBUGGING 9 /**< Debug mode was not on or debug section not found */
21.10 #define SP_ERROR_INVALID_INSTRUCTION 10 /**< Invalid instruction was encountered */
21.11 #define SP_ERROR_MEMACCESS 11 /**< Invalid memory access */
21.12 @@ -220,7 +220,7 @@
21.13 typedef struct sp_debug_symbol_s
21.14 {
21.15 uint32_t codestart; /**< Relocated code address */
21.16 - uint32_t codeend; /**< relocated code end address */
21.17 + uint32_t codeend; /**< Relocated code end address */
21.18 const char * name; /**< Relocated name */
21.19 sp_debug_arraydim_t *dims; /**< Relocated dimension struct, if any */
21.20 sp_fdbg_symbol_t *sym; /**< Pointer to original symbol */