Some const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3976 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
3e231c9f87
commit
f7186877fe
|
@ -2732,7 +2732,7 @@ const char* getName(const char *pNameID)
|
|||
|
||||
|
||||
/*sets the tech level for the stat passed in - returns TRUE if set OK*/
|
||||
BOOL setTechLevel(BASE_STATS *psStats, char *pLevel)
|
||||
BOOL setTechLevel(BASE_STATS *psStats, const char *pLevel)
|
||||
{
|
||||
TECH_LEVEL techLevel = MAX_TECH_LEVELS;
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ extern SDWORD getCompFromName(UDWORD compType, const char *pName);
|
|||
//get the component Inc for a stat based on the Resource name held in Names.txt
|
||||
extern SDWORD getCompFromResName(UDWORD compType, const char *pName);
|
||||
/*sets the tech level for the stat passed in */
|
||||
extern BOOL setTechLevel(BASE_STATS *psStats, char *pLevel);
|
||||
extern BOOL setTechLevel(BASE_STATS *psStats, const char *pLevel);
|
||||
/*returns the weapon sub class based on the string name passed in */
|
||||
extern WEAPON_SUBCLASS getWeaponSubClass(const char *pSubClass);
|
||||
/*either gets the name associated with the resource (if one) or allocates space and copies pName*/
|
||||
|
|
Loading…
Reference in New Issue