Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2007, 6:02:07 PM (16 years ago)
Author:
nicolasc
Message:

added copyright notice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/GameStateClient.cc

    r505 r514  
     1/*
     2 *   ORXONOX - the hottest 3D action shooter ever to exist
     3 *
     4 *
     5 *   License notice:
     6 *
     7 *   This program is free software; you can redistribute it and/or
     8 *   modify it under the terms of the GNU General Public License
     9 *   as published by the Free Software Foundation; either version 2
     10 *   of the License, or (at your option) any later version.
     11 *
     12 *   This program is distributed in the hope that it will be useful,
     13 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 *   GNU General Public License for more details.
     16 *
     17 *   You should have received a copy of the GNU General Public License
     18 *   along with this program; if not, write to the Free Software
     19 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     20 *
     21 *   Author:
     22 *      ...
     23 *   Co-authors:
     24 *      ...
     25 *
     26 */
     27
    128#include "GameStateClient.h"
    229
     
    5279    sync.data = data;
    5380    data+=sync.length;
    54    
     81
    5582    if(it->objectID!=sync.objectID){
    5683      // bad luck ;)
     
    73100    ++it;
    74101  }
    75  
     102
    76103  return true;
    77104}
     
    117144  uLongf length=normsize;
    118145  retval = uncompress( dest, &length, a.data, (uLong)compsize );
    119  
     146
    120147  switch ( retval ) {
    121148    case Z_OK: std::cout << "successfully compressed" << std::endl; break;
     
    124151    case Z_DATA_ERROR: std::cout << "data corrupted" << std::endl; break;
    125152  }
    126  
     153
    127154  GameState gamestate;
    128155  gamestate.id = a.id;
     
    130157  gamestate.data = dest;
    131158  gamestate.diffed = a.diffed;
    132  
     159
    133160  return gamestate;
    134161}
Note: See TracChangeset for help on using the changeset viewer.