Changeset 9c18cb7 in network-game


Ignore:
Timestamp:
Dec 24, 2013, 8:17:56 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
f3fb980
Parents:
8554263
Message:

Removed error function definition from main.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r8554263 r9c18cb7  
    7474void closeGameSummary();
    7575
    76 void error(const char *);
    77 
    7876const float FPS = 60;
    7977const int SCREEN_W = 1024;
     
    337335   server.sin_family = AF_INET;
    338336   hp = gethostbyname(argv[1]);
    339    if (hp==0)
     337   if (hp == 0)
    340338      error("Unknown host");
    341339
     
    687685}
    688686
    689 
    690 
    691 // need to make a function like this that works on windows
    692 void error(const char *msg)
    693 {
    694    perror(msg);
    695    shutdownWinSock();
    696    exit(1);
    697 }
    698 
    699687void initWinSock()
    700688{
Note: See TracChangeset for help on using the changeset viewer.