Functions |
| static char * | unclean_path (const char *src) |
| static void | process_players1 () |
| static void | process_players2 () |
| static void | dequeue_path_requests () |
| static void | do_specials () |
| void | fatal (int err) |
| void | version (object *op) |
| char * | crypt_string (char *str, char *salt) |
| int | check_password (char *typed, char *crypted) |
| void | enter_player_savebed (object *op) |
| void | leave_map (object *op) |
| static void | enter_map (object *op, mapstruct *newmap, int x, int y, int pos_flag) |
| void | set_map_timeout (mapstruct *map) |
| char * | clean_path (const char *file) |
| static void | enter_random_map (object *pl, object *exit_ob) |
| static void | enter_unique_map (object *op, object *exit_ob) |
| void | enter_exit (object *op, object *exit_ob) |
| void | process_events (mapstruct *map) |
| void | clean_tmp_files () |
| void | cleanup () |
| int | swap_apartments (const char *mapold, const char *mapnew, int x, int y, object *op) |
| static void | iterate_main_loop () |
| int | main (int argc, char **argv) |
Variables |
| static object | marker |
| static const char *const | branch_paths [] |
| static uint32 | branch_revision = 0 |
Server main related functions.
Definition in file main.c.
| static void enter_map |
( |
object * |
op, |
|
|
mapstruct * |
newmap, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
pos_flag |
|
) |
| [static] |
Moves the player from current map (if any) to new map. map, x, y must be set.
If default map coordinates are to be used, then the function that calls this should figure them out.
- Parameters:
-
| op | The object we are moving |
| newmap | Map to move the object to - it could be the map he just came from if the load failed for whatever reason. |
| x | X position on the new map |
| y | Y position on the new map |
| pos_flag | If set, the function will not look for a free space and move the object, even if the position is blocked. |
Definition at line 203 of file main.c.
| static char * unclean_path |
( |
const char * |
src | ) |
[static] |
Takes a path and replaces all $ with /.
This basically undoes clean_path().
We use strncpy so that we do not change the original string.
We are smart enough to start after the last / in case we are getting passed a string that points to a unique map path.
- Parameters:
-
- Returns:
- Uncleaned up path.
Definition at line 375 of file main.c.