Ignore:
Timestamp:
May 14, 2011, 3:06:27 AM (9 years ago)
Author:
Sam Hocevar
Message:

build: add a --disable-network compilation flag and get rid of most of
the CELLOS_LV2 ifdefs.

File:
1 edited

Legend:

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

    r643 r651  
    394394    }
    395395
    396 #if !defined __CELLOS_LV2__
    397396    if( view_changed() )
    398397    {
     
    443442    base->packet.write_uint16((uint16_t)((int16_t)sug_px));
    444443    base->packet.write_uint16((uint16_t)((int16_t)sug_py));
    445 #endif
    446444}
    447445
     
    494492int view::process_input(char cmd, uint8_t *&pk)   // return 0 if something went wrong
    495493{
    496 #if !defined __CELLOS_LV2__
    497494  switch (cmd)
    498495  {
     
    566563    case SCMD_EXT_KEYRELEASE : set_key_down(*(pk++)+256,0); break;
    567564  }
    568 #endif
    569565  return 1;
    570566}
     
    572568int view::local_player()
    573569{
    574 #if defined __CELLOS_LV2__
    575   return 1;
    576 #else
    577570  return player_number==client_number();
    578 #endif
    579571}
    580572
     
    11781170void process_packet_commands(uint8_t *pk, int size)
    11791171{
    1180 #if !defined __CELLOS_LV2__
    11811172  int32_t sync_uint16=-1;
    11821173
     
    12781269    }
    12791270  } while (cmd!=SCMD_END_OF_PACKET);
    1280 #endif
    12811271}
    12821272
Note: See TracChangeset for help on using the changeset viewer.