variable declarations come first

This commit is contained in:
zicodxx 2012-04-05 02:21:33 +02:00
parent fd42ac5cb1
commit 39b0dacd6a
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
D2X-Rebirth Changelog
20120405
--------
main/multi.c: variable declarations come first
20120331
--------
d2x-rebirth.xcodeproj/project.pbxproj, 2d/font.c: Make sure the ogl font code recognises the editor font is fixed width, fixing a crash; take the plunge and make D2X Rebirth compile with editor for Mac OpenGL build (won't work yet)

View file

@ -1606,8 +1606,8 @@ multi_do_message(char *buf)
if (((colon = strstr(buf+loc, ": ")) == NULL) || (colon-(buf+loc) < 1) || (colon-(buf+loc) > CALLSIGN_LEN))
{
mesbuf[0] = CC_COLOR;
int color = 0;
mesbuf[0] = CC_COLOR;
if (Game_mode & GM_TEAM)
color = get_team((int)buf[1]);
else
@ -1629,8 +1629,8 @@ multi_do_message(char *buf)
if ( (!strnicmp(Players[Player_num].callsign, buf+loc, colon-(buf+loc))) ||
((Game_mode & GM_TEAM) && ( (get_team(Player_num) == atoi(buf+loc)-1) || !strnicmp(Netgame.team_name[get_team(Player_num)], buf+loc, colon-(buf+loc)))) )
{
mesbuf[0] = CC_COLOR;
int color = 0;
mesbuf[0] = CC_COLOR;
if (Game_mode & GM_TEAM)
color = get_team((int)buf[1]);
else