Skip to content

Commit

Permalink
make more stuff const
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintWish committed Sep 27, 2024
1 parent 105a2f5 commit f8187c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game/shared/ms/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ msstring_ref CScript::GetConst(msstring_ref Text)
return Text;
}

bool GetString(char* Return, size_t size, const char* sentence, int start, char* endchars)
bool GetString(char* Return, size_t size, const char* sentence, int start, const char* endchars)
{
// Quickie function to return the next CMD or parameter in a script string
int i = 0, n, iPosition = start, endCharSize = strlen(endchars);
Expand Down
2 changes: 1 addition & 1 deletion src/game/shared/ms/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class CScript : public IVariables

#undef SCRIPTVAR
#define SCRIPTVAR GetFirstScriptVar
bool GetString(char *Return, size_t size, const char *sentence, int start, char *endchars);
bool GetString(char *Return, size_t size, const char *sentence, int start, const char *endchars);
::mslist<std::string> GetParams(std::string const &str);
void ReplaceChar(char *pString, char org, char dest);
float GetNumeric(const char *pszText);
Expand Down
2 changes: 1 addition & 1 deletion src/game/shared/weapons/giattack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#endif

//extern iBeam;
bool GetString(char *Return, size_t size, const char *sentence, int start, char *endchars);
bool GetString(char *Return, size_t size, const char *sentence, int start, const char *endchars);
#define ReadStat(Name, StatVar, PropVar) \
{ \
Temp = GetFirstScriptVar(Name); \
Expand Down

0 comments on commit f8187c2

Please sign in to comment.