Ignore:
Timestamp:
Mar 2, 2008, 12:29:06 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File:
1 edited

Legend:

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

    r17 r39  
    8585  uint16_t background_height() { return bg_height; }
    8686  int load_failed() { return map_fg==NULL; }
    87   level(spec_directory *sd, bFILE *fp, char *lev_name);
     87  level(spec_directory *sd, bFILE *fp, char const *lev_name);
    8888  void load_fail();             
    89   level(int width, int height, char *name); 
    90   int save(char *filename, int save_all);  // save_all includes player and view information (1 = success)
    91   void set_name(char *name) { Name=strcpy((char *)jrealloc(Name,strlen(name)+1,"map name"),name); }
     89  level(int width, int height, char const *name); 
     90  int save(char const *filename, int save_all);  // save_all includes player and view information (1 = success)
     91  void set_name(char const *name) { Name=strcpy((char *)jrealloc(Name,strlen(name)+1,"map name"),name); }
    9292  void set_size(int w, int h);
    9393  void remove_light(light_source *which);
Note: See TracChangeset for help on using the changeset viewer.