Init AI colors

fixes ticket:1070

Also slight fix to a few comments & a debug statement

(r8409)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8523 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-11-26 18:30:41 +00:00 committed by Git SVN Gateway
parent 5541be53a5
commit 7620fcbdad
4 changed files with 6 additions and 2 deletions

View File

@ -78,6 +78,8 @@ static UDWORD lightLastChanged;
SDWORD lightSpeed=2;
extern UDWORD selectedPlayer;
UBYTE PlayerColour[MAX_PLAYERS] = {0,1,2,3,4,5,6,7};
// Colour Lookups
// use col = MAX_PLAYERS for anycolour (see multiint.c)
BOOL setPlayerColour(UDWORD player, UDWORD col)

View File

@ -29,6 +29,8 @@
Pumpkin Studios, EIDOS Interactive.
*/
extern UBYTE PlayerColour[MAX_PLAYERS];
extern void initPlayerColours(void);
extern BOOL setPlayerColour(UDWORD player, UDWORD col);
extern UBYTE getPlayerColour(UDWORD pl);

View File

@ -117,7 +117,7 @@ UDWORD hashBuffer(uint8_t *pData, uint32_t size)
{
newsize = (size - CRtoStrip) + (4- fillbytes);
fillbytes = newsize % 4;
debug(LOG_NET, "The size of the buffer (%u bytes) is not on a 4 byte boundry, compensating to a new buffer size of %u bytes.", size, newsize);
debug(LOG_NET, "The size of the buffer (%u bytes - stripped %d) is not on a 4 byte boundry, compensating to a new buffer size of %u bytes.", size, CRtoStrip, newsize);
}
NewData = malloc(newsize * sizeof(uint8_t));

View File

@ -38,7 +38,7 @@ typedef struct {
uint32_t power; // power level for arena game
uint8_t base; // clean/base/base&defence
uint8_t alliance; // no/yes/AIs vs Humans
uint8_t skDiff[MAX_PLAYERS]; // skirmish game difficulty settings.
uint8_t skDiff[MAX_PLAYERS]; // skirmish game difficulty settings. 0x0=OFF 0xff=HUMAN
} MULTIPLAYERGAME;
typedef struct