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/net/gclient.cpp

    r13 r17  
    2424int game_client::process_server_command()
    2525{
    26   uchar cmd;
     26  uint8_t cmd;
    2727  if (client_sock->read(&cmd,1)!=1) return 0;
    2828  switch (cmd)
     
    3030    case CLCMD_REQUEST_RESEND :
    3131    {
    32       uchar tick;
     32      uint8_t tick;
    3333      if (client_sock->read(&tick,1)!=1) return 0;
    3434
     
    6767    if (bytes_received==tmp.packet_size()+tmp.packet_prefix_size())   // was the packet complete?
    6868    {
    69       unsigned short rec_crc=tmp.get_checksum();
     69      uint16_t rec_crc=tmp.get_checksum();
    7070      if (rec_crc==tmp.calc_checksum())
    7171      {
     
    141141int game_client::end_reload(int disconnect)  // notify evryone you've reloaded the level (at server request)
    142142{
    143   uchar cmd=CLCMD_RELOAD_END;
     143  uint8_t cmd=CLCMD_RELOAD_END;
    144144  if (client_sock->write(&cmd,1)!=1) return 0;
    145145  return 1;
     
    148148int game_client::start_reload()
    149149{
    150   uchar cmd=CLCMD_RELOAD_START;
     150  uint8_t cmd=CLCMD_RELOAD_START;
    151151  if (client_sock->write(&cmd,1)!=1) return 0;
    152152  if (client_sock->read(&cmd,1)!=1) return 0;
     
    166166int game_client::quit()
    167167{
    168   uchar cmd=CLCMD_UNJOIN;
     168  uint8_t cmd=CLCMD_UNJOIN;
    169169  if (client_sock->write(&cmd,1)!=1) return 0;
    170170  if (client_sock->read(&cmd,1)!=1) return 0;
Note: See TracChangeset for help on using the changeset viewer.