Ignore:
Timestamp:
Nov 10, 2005, 8:08:09 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • shitloads of long -> int32_t changes for 64 bit safety.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/include/game.hpp

    r2 r16  
    4646extern char **start_argv;
    4747extern int start_argc;
    48 extern long current_vxadd,current_vyadd;
     48extern int32_t current_vxadd,current_vyadd;
    4949extern int frame_panic,massive_frame_panic;
    5050extern int demo_start,idle_ticks;
     
    5858      morph_bright_color,morph_med_color,morph_dark_color;
    5959
    60   long last_time,fps;
     60  int32_t last_time,fps;
    6161  char mapname[100],command[200],help_text[200];
    6262  int refresh,mousex,mousey,help_text_frames;
     
    9393                           return cash.foret(foretiles[x]); }
    9494
    95   void ftile_on(int screenx, int screeny, long &x, long &y);
    96   void btile_on(int screenx, int screeny, long &x, long &y);
     95  void ftile_on(int screenx, int screeny, int32_t &x, int32_t &y);
     96  void btile_on(int screenx, int screeny, int32_t &x, int32_t &y);
    9797  void toggle_delay();
    9898  void set_delay(int on) { no_delay=!on; }
    9999  void pan(int xv, int yv);
    100100
    101   void mouse_to_game(long x, long y, long &gamex, long &gamey, view *v=NULL);
    102   void game_to_mouse(long gamex, long gamey, view *which, long &x, long &y);
     101  void mouse_to_game(int32_t x, int32_t y, int32_t &gamex, int32_t &gamey, view *v=NULL);
     102  void game_to_mouse(int32_t gamex, int32_t gamey, view *which, int32_t &x, int32_t &y);
    103103  view *view_in(int mousex, int mousey);
    104104
     
    139139  int game_over();
    140140  void grow_views(int amount);
    141   void play_sound(int id, int vol, long x, long y);
     141  void play_sound(int id, int vol, int32_t x, int32_t y);
    142142  void request_level_load(char *name);
    143143  void request_end();
Note: See TracChangeset for help on using the changeset viewer.