--- deliantra/server/include/sproto.h 2006/10/01 23:44:36 1.22 +++ deliantra/server/include/sproto.h 2006/12/30 10:16:10 1.34 @@ -1,3 +1,4 @@ +int same_party (partylist *a, partylist *b); /* alchemy.c */ int need_identify (const object *obj); int apply_shop_mat (object *shop_mat, object *op); @@ -81,7 +82,8 @@ object *get_connection_rune(object *pl, short x, short y); object *get_msg_book(object *pl, short x, short y); object *get_wall(struct mapdef *map, int x, int y); -void fix_walls(struct mapdef *map, int x, int y); +void fix_walls(maptile *map, int x, int y); +void fix_walls_around(maptile *map, int x, int y); void apply_builder_floor(object *pl, object *material, short x, short y); void apply_builder_wall(object *pl, object *material, short x, short y); void apply_builder_item(object *pl, object *item, short x, short y); @@ -225,7 +227,7 @@ int command_west(object *op, char *params); int command_stay(object *op, char *params); /* c_new.c */ -int execute_newserver_command(object *pl, char *command); +void execute_newserver_command(object *pl, char *command); int command_run(object *op, char *params); int command_run_stop(object *op, char *params); int command_fire(object *op, char *params); @@ -421,20 +423,16 @@ racelink *get_racelist(void); racelink *find_racelink(const char *name); /* login.c */ -void emergency_save(int flag); void delete_character(const char *name, int); int verify_player(const char *name, char *password); int check_name(player *me, const char *name); int create_savedir_if_needed(char *savedir); void destroy_object(object *op); -int save_player(object *op, int flag); void copy_file(const char *filename, FILE *fpout); -void check_login(object *op); /* main.c */ void server_tick (); void version(object *op); void info_keys(object *op); -void start_info(object *op); char *crypt_string(char *str, char *salt); int check_password(char *typed, char *crypted); void enter_player_savebed(object *op); @@ -443,12 +441,8 @@ char *clean_path(const char *file); char *unclean_path(const char *src); void enter_exit(object *op, object *exit_ob); -void process_active_maps(void); -void process_players1(maptile *map); -void process_players2(maptile *map); -void process_events(maptile *map); +void process_events(); void clean_tmp_files(void); -void cleanup(void); void leave(player *pl,int draw_exit); int forbid_play(void); void do_specials(void); @@ -526,7 +520,6 @@ void send_rules(const object *op); void send_news(const object *op); int playername_ok(const char *cp); -int add_player(NewSocket *ns); archetype *get_player_archetype(archetype *at); object *get_nearest_player(object *mon); int path_to_player(object *mon, object *pl, unsigned mindiff); @@ -537,8 +530,6 @@ int receive_play_again(object *op, char key); void confirm_password(object *op); void get_party_password(object *op, partylist *party); -int roll_stat(void); -void roll_stats(object *op); void Roll_Again(object *op); void Swap_Stat(object *op, int Swap_Second); int key_roll_stat(object *op, char key); @@ -585,7 +576,7 @@ crossfire_plugin *plugins_find_plugin(const char *id); void plugins_display_list(object *op); void *cfapi_system_find_animation(int *type, ...); -void *cfapi_system_strdup_local(int *type, ...); +void *cfapi_system_strdup(int *type, ...); void *cfapi_system_register_global_event(int *type, ...); void *cfapi_system_unregister_global_event(int *type, ...); void *cfapi_system_check_path(int *type, ...);