]> git.uio.no Git - private-olgabo.git/commitdiff
sc
authorolgabo <olgabo@ifi.uio.no>
Tue, 23 Oct 2012 13:43:43 +0000 (15:43 +0200)
committerolgabo <olgabo@ifi.uio.no>
Tue, 23 Oct 2012 13:43:43 +0000 (15:43 +0200)
projects/dumbclient/Game.cpp

index 42505e045dd03c8cb750e767da3d6739db57e427..0d50f830d79a04e94f05938d755a4d2228c63ae4 100644 (file)
@@ -1215,7 +1215,7 @@ void Game::update()
     {
         memset(recvbuffer, 0, BUFFERSIZE);
         int bytesreceived = client->readMessage(recvbuffer);
-
+        cout << bytesreceived << " bytesreceived\n";
         // correct score
         if (bytesreceived == 8)
         {
@@ -1252,7 +1252,7 @@ void Game::update()
             
                 if (pid == myPlayerId)
                 {
-                    sizeread += ( sizeof(Vector3) + sizeof(Quaternion) + sizeof(int) + sizeof(struct timeval));
+                    sizeread += ( sizeof(Vector3) + sizeof(Quaternion) + sizeof(int)*2 + sizeof(struct timeval));
                     continue;
                 }