Const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4016 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
76f9cfdeed
commit
a73f0de08a
|
@ -96,7 +96,7 @@ UBYTE *apCompLists[MAX_PLAYERS][COMP_NUMCOMPONENTS];
|
||||||
//store for each players Structure states
|
//store for each players Structure states
|
||||||
UBYTE *apStructTypeLists[MAX_PLAYERS];
|
UBYTE *apStructTypeLists[MAX_PLAYERS];
|
||||||
|
|
||||||
static BOOL compareYes(char *strToCompare, char *strOwner);
|
static BOOL compareYes(const char *strToCompare, const char *strOwner);
|
||||||
static MOVEMENT_MODEL getMovementModel(const char *pMovement);
|
static MOVEMENT_MODEL getMovementModel(const char *pMovement);
|
||||||
|
|
||||||
//Access functions for the max values to be used in the Design Screen
|
//Access functions for the max values to be used in the Design Screen
|
||||||
|
@ -2558,7 +2558,7 @@ unsigned int componentType(const char* pType)
|
||||||
}
|
}
|
||||||
|
|
||||||
//function to compare a value with yes/no - if neither warns player!
|
//function to compare a value with yes/no - if neither warns player!
|
||||||
BOOL compareYes(char *strToCompare, char *strOwner)
|
BOOL compareYes(const char* strToCompare, const char* strOwner)
|
||||||
{
|
{
|
||||||
if (!strcmp(strToCompare, "YES"))
|
if (!strcmp(strToCompare, "YES"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue