Changeset 7b43385 in network-game for common/Message.cpp


Ignore:
Timestamp:
Feb 24, 2013, 1:31:44 AM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
3d81c0d, 60940f8
Parents:
ca44f82
Message:

Smooth player movement now works, albeit poorly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Message.cpp

    rca44f82 r7b43385  
    1919   int ret =  sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in));
    2020
    21    cout << "Sent message of type " << msg->type << endl;
    22 
    2321   return ret;
    2422}
     
    3129   int ret =  recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, &socklen);
    3230
    33    if (ret > -1)
    34       cout << "Received message of type " << msg->type << endl;
    35 
    3631   return ret;
    3732}
Note: See TracChangeset for help on using the changeset viewer.