Hi, anyone have Overland snippet running in Smaugfuss 1.9??
I´ve patched all the files, but overland.c givme a lot of errors like:
Anyone can help me with this errors?? i don´t know much about type definitions and how to make it interact with other types and that stuff
Thanks
I´ve patched all the files, but overland.c givme a lot of errors like:
overland.c:186: error: deprecated conversion from string constant to 'char*'
....(many other errors about line 186: const struct sect_color_type sect_show[])...
overland.c:201: error: deprecated conversion from string constant to 'char*'
.....(many other errors about line 201: char *landmark_distances[]).....
overland.c: In function 'void fread_landmark(LANDMARK_DATA*, FILE*)':
overland.c:699: error: invalid conversion from 'const char*' to 'char*'
overland.c: In function 'void add_landmark(short int, short int, short int)':
overland.c:821: error: invalid conversion from 'const char*' to 'char*'
overland.c: In function 'void do_survey(CHAR_DATA*, char*)':
overland.c:931: error: format '%d' expects type 'int', but argument 3 has type 'double'
overland.c: In function 'void do_setmark(CHAR_DATA*, char*)':
overland.c:997: error: invalid conversion from 'const char*' to 'char*'
overland.c: In function 'void fread_entrance(ENTRANCE_DATA*, FILE*)':
overland.c:1121: error: invalid conversion from 'const char*' to 'char*'
overland.c: In function 'void modify_entrance(ENTRANCE_DATA*, short int, short int, short int, short int, short int, short int, int, char*)':
overland.c:1292: error: invalid conversion from 'const char*' to 'char*'
overland.c: In function 'void add_entrance(short int, short int, short int, short int, short int, short int, int)':
overland.c:1314: error: invalid conversion from 'const char*' to 'char*'
overland.c: In function 'void load_mapfile(char*, short int)':
overland.c:1985: error: deprecated conversion from string constant to 'char*'
overland.c: In function 'void load_maps()':
overland.c:2035: error: invalid conversion from 'const char*' to 'char*'
overland.c:2035: error: initializing argument 1 of 'void load_mapfile(char*, short int)'
overland.c: In function 'ch_ret process_exit(CHAR_DATA*, short int, short int, short int, int)':
overland.c: In function 'void reload_map(CHAR_DATA*)':
overland.c:3319: error: invalid conversion from 'const char*' to 'char*'
overland.c:3319: error: initializing argument 1 of 'void load_mapfile(char*, short int)'
overland.c: In function 'void do_mapedit(CHAR_DATA*, char*)':
overland.c:3502: error: invalid conversion from 'const char*' to 'char*'
overland.c: In function 'char* bamf_print(char*, CHAR_DATA*)':
overland.c:3602: error: field precision should have type 'int', but argument 4 has type 'long int'
overland.c:3602: error: field precision should have type 'int', but argument 4 has type 'long int'
make[1]: *** [o/overland.o] Error 1
Anyone can help me with this errors?? i don´t know much about type definitions and how to make it interact with other types and that stuff
Thanks