Changeset 7fa452f in network-game for server/DataAccess.cpp


Ignore:
Timestamp:
Nov 8, 2014, 1:38:54 AM (10 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
master
Children:
347d768
Parents:
306758e
Message:

Change the player team variable so that 0 means no team, 1 means blue team, and 2 means red team (before, -1 meant no team, 0 meant blue team, and 1 meant red team)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/DataAccess.cpp

    r306758e r7fa452f  
    180180   // the columns are result, team, blue score, and red score
    181181   // for result 0 is defeat and 1 is victory
    182    // for team, 0 is blue and 1 is red
     182   // for team, 1 is blue and 2 is red
    183183
    184184   MYSQL_RES *result;
     
    205205
    206206      if (blueScore == 3) {
    207          if (userTeam == 0)
     207         if (userTeam == 1)
    208208            gameResult = 1;
    209209         else
    210210            gameResult = 0;
    211211      }else if (redScore == 3) {
    212          if (userTeam == 1)
     212         if (userTeam == 2)
    213213            gameResult = 1;
    214214         else
Note: See TracChangeset for help on using the changeset viewer.