forked from github/server
gcc compile fixes
This commit is contained in:
parent
708a6ceb8e
commit
cf30ac9f46
3 changed files with 5 additions and 5 deletions
|
@ -147,7 +147,7 @@ cmd_join(const tnode * tnext, void * data, struct order * ord)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
perform_kick()
|
perform_kick(void)
|
||||||
{
|
{
|
||||||
alliance_transaction ** tap = transactions+ALLIANCE_KICK;
|
alliance_transaction ** tap = transactions+ALLIANCE_KICK;
|
||||||
while (*tap) {
|
while (*tap) {
|
||||||
|
@ -335,7 +335,7 @@ alliance_cmd(void)
|
||||||
add_command(leaf, NULL, LOC(slang->lang, "invite"), &cmd_invite);
|
add_command(leaf, NULL, LOC(slang->lang, "invite"), &cmd_invite);
|
||||||
add_command(leaf, NULL, LOC(slang->lang, "join"), &cmd_join);
|
add_command(leaf, NULL, LOC(slang->lang, "join"), &cmd_join);
|
||||||
add_command(leaf, NULL, LOC(slang->lang, "kick"), &cmd_kick);
|
add_command(leaf, NULL, LOC(slang->lang, "kick"), &cmd_kick);
|
||||||
add_command(leaf, NULL, LOC(slang->lang, "leave"), &cmd_new);
|
add_command(leaf, NULL, LOC(slang->lang, "leave"), &cmd_leave);
|
||||||
add_command(leaf, NULL, LOC(slang->lang, "command"), &cmd_transfer);
|
add_command(leaf, NULL, LOC(slang->lang, "command"), &cmd_transfer);
|
||||||
slang->root = leaf;
|
slang->root = leaf;
|
||||||
slang = slang->next;
|
slang = slang->next;
|
||||||
|
|
|
@ -379,7 +379,7 @@ extern const char * spell_name(const struct spell * sp, const struct locale * la
|
||||||
extern const char * curse_name(const struct curse_type * ctype, const struct locale * lang);
|
extern const char * curse_name(const struct curse_type * ctype, const struct locale * lang);
|
||||||
|
|
||||||
extern struct message * msg_unitnotfound(const struct unit * mage, struct order * ord, const struct spllprm * spobj);
|
extern struct message * msg_unitnotfound(const struct unit * mage, struct order * ord, const struct spllprm * spobj);
|
||||||
extern int FactionSpells();
|
extern int FactionSpells(void);
|
||||||
extern struct spell_list ** get_spelllist(struct sc_mage * mage, struct faction * f);
|
extern struct spell_list ** get_spelllist(struct sc_mage * mage, struct faction * f);
|
||||||
|
|
||||||
extern void write_spelllist(const struct spell_list * slist, struct storage * store);
|
extern void write_spelllist(const struct spell_list * slist, struct storage * store);
|
||||||
|
|
|
@ -596,7 +596,6 @@ load_inifile(const char * filename)
|
||||||
static void
|
static void
|
||||||
write_spells(void)
|
write_spells(void)
|
||||||
{
|
{
|
||||||
const resource_type * rt_water = rt_find("p2");
|
|
||||||
struct locale * loc = find_locale("de");
|
struct locale * loc = find_locale("de");
|
||||||
FILE * F = fopen("spells.txt", "w");
|
FILE * F = fopen("spells.txt", "w");
|
||||||
spell_list * spl = spells;
|
spell_list * spl = spells;
|
||||||
|
@ -649,7 +648,8 @@ main(int argc, char *argv[])
|
||||||
kernel_init();
|
kernel_init();
|
||||||
game_init();
|
game_init();
|
||||||
|
|
||||||
/* write_spells(); */
|
if (0)
|
||||||
|
write_spells();
|
||||||
|
|
||||||
/* run the main script */
|
/* run the main script */
|
||||||
if (luafile==NULL) lua_console(luaState);
|
if (luafile==NULL) lua_console(luaState);
|
||||||
|
|
Loading…
Reference in a new issue