Changeset 7fa452f in network-game for server/DataAccess.cpp
- Timestamp:
- Nov 8, 2014, 1:38:54 AM (10 years ago)
- Branches:
- master
- Children:
- 347d768
- Parents:
- 306758e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/DataAccess.cpp
r306758e r7fa452f 180 180 // the columns are result, team, blue score, and red score 181 181 // for result 0 is defeat and 1 is victory 182 // for team, 0 is blue and 1is red182 // for team, 1 is blue and 2 is red 183 183 184 184 MYSQL_RES *result; … … 205 205 206 206 if (blueScore == 3) { 207 if (userTeam == 0)207 if (userTeam == 1) 208 208 gameResult = 1; 209 209 else 210 210 gameResult = 0; 211 211 }else if (redScore == 3) { 212 if (userTeam == 1)212 if (userTeam == 2) 213 213 gameResult = 1; 214 214 else
Note:
See TracChangeset
for help on using the changeset viewer.