Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/server2.cpp

    r2 r17  
    130130  if (sync_check)
    131131  {
    132     next_out.write_byte(SCMD_SYNC);
    133     next_out.write_long(make_sync_long());
     132    next_out.write_uint8(SCMD_SYNC);
     133    next_out.write_uint32(make_sync_uint32());
    134134  }
    135135   
    136   next_out.write_byte(SCMD_END_OF_PACKET);        // so clients knows when to stop reading
     136  next_out.write_uint8(SCMD_END_OF_PACKET);        // so clients knows when to stop reading
    137137
    138138  for (client_descriptor *p=client_list;p;)
     
    211211    packet pk;
    212212    current_level->save("netstart.spe",1);
    213     printf("%d sync for save\n",make_sync_long());
     213    printf("%d sync for save\n",make_sync_uint32());
    214214
    215215    client_descriptor *last=NULL;
     
    218218      if (p->player)
    219219      {
    220         pk.write_byte(SCMD_JOIN_START);
     220        pk.write_uint8(SCMD_JOIN_START);
    221221        int error=!p->connection->send(pk);
    222222        if (!error)
Note: See TracChangeset for help on using the changeset viewer.