Atrinik Server 2.5
Functions
server/swap.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

void read_map_log ()
void swap_map (mapstruct *map, int force_flag)
void check_active_maps ()
void flush_old_maps ()

Detailed Description

Controls map swap functions.

Definition in file swap.c.


Function Documentation

void check_active_maps ( )

Check active maps and swap them out.

Definition at line 193 of file swap.c.

void flush_old_maps ( )

Removes temporary files of maps which are going to be reset next time they are visited.

This is very useful if the tmp-disk is very full.

Definition at line 230 of file swap.c.

void read_map_log ( )

Read map log.

Definition at line 70 of file swap.c.

void swap_map ( mapstruct map,
int  force_flag 
)

Swaps a map to disk.

Parameters:
mapMap to swap.
force_flagForce flag. If set, will not check for players.

Definition at line 120 of file swap.c.