Crossfire Server, Trunk  R20513
Macros
Save error values

Those values are returned by save_map(), save_object() and save_objects(). More...

Macros

#define SAVE_ERROR_CLOSE   -6
 Close error for regular file. More...
 
#define SAVE_ERROR_NO_PATH   -4
 Map had no path set. More...
 
#define SAVE_ERROR_NOT_IN_MEMORY   -10
 Map to swap isn't in memory. More...
 
#define SAVE_ERROR_OK   0
 No error. More...
 
#define SAVE_ERROR_PLAYER   -11
 Player on map to save. More...
 
#define SAVE_ERROR_RCREATION   -1
 Couldn't create the regular save file. More...
 
#define SAVE_ERROR_RRENAME   -7
 Couldn't rename regular temporary file. More...
 
#define SAVE_ERROR_UCREATION   -2
 Couldn't create the file for unique objects. More...
 
#define SAVE_ERROR_URENAME   -5
 Couldn't rename unique temporary file. More...
 
#define SAVE_ERROR_WRITE   -3
 Write error. More...
 

Detailed Description

Those values are returned by save_map(), save_object() and save_objects().

Values under -10 are returned by swap_map() only.

Macro Definition Documentation

#define SAVE_ERROR_CLOSE   -6

Close error for regular file.

Definition at line 149 of file map.h.

Referenced by save_map().

#define SAVE_ERROR_NO_PATH   -4

Map had no path set.

Definition at line 147 of file map.h.

Referenced by save_map().

#define SAVE_ERROR_NOT_IN_MEMORY   -10

Map to swap isn't in memory.

Definition at line 151 of file map.h.

Referenced by swap_map().

#define SAVE_ERROR_OK   0

No error.

Definition at line 143 of file map.h.

Referenced by save_map(), save_object(), save_player(), and swap_map().

#define SAVE_ERROR_PLAYER   -11

Player on map to save.

Definition at line 152 of file map.h.

Referenced by command_reset(), and swap_map().

#define SAVE_ERROR_RCREATION   -1

Couldn't create the regular save file.

Definition at line 144 of file map.h.

Referenced by save_map().

#define SAVE_ERROR_RRENAME   -7

Couldn't rename regular temporary file.

Definition at line 150 of file map.h.

Referenced by save_map().

#define SAVE_ERROR_UCREATION   -2

Couldn't create the file for unique objects.

Definition at line 145 of file map.h.

Referenced by save_map().

#define SAVE_ERROR_URENAME   -5

Couldn't rename unique temporary file.

Definition at line 148 of file map.h.

Referenced by save_map().

#define SAVE_ERROR_WRITE   -3

Write error.

Definition at line 146 of file map.h.

Referenced by save_map(), and save_object().