Changeset 9c18cb7 in network-game for client/Client
- Timestamp:
- Dec 24, 2013, 8:17:56 PM (11 years ago)
- Branches:
- master
- Children:
- f3fb980
- Parents:
- 8554263
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r8554263 r9c18cb7 74 74 void closeGameSummary(); 75 75 76 void error(const char *);77 78 76 const float FPS = 60; 79 77 const int SCREEN_W = 1024; … … 337 335 server.sin_family = AF_INET; 338 336 hp = gethostbyname(argv[1]); 339 if (hp ==0)337 if (hp == 0) 340 338 error("Unknown host"); 341 339 … … 687 685 } 688 686 689 690 691 // need to make a function like this that works on windows692 void error(const char *msg)693 {694 perror(msg);695 shutdownWinSock();696 exit(1);697 }698 699 687 void initWinSock() 700 688 {
Note:
See TracChangeset
for help on using the changeset viewer.