Build 3000
SVN-
Generale
Add macro CON_ERRPRINTF(Fmt, ...) and use that everywhere.
-
Generale
Factor out some repeated code into G_{Load,Save}PlayerMaybeMulti.
Mostra dettagli
This currently says that MP saving/loading isn't supported, but doesn't really work correctly. Also, properly bound-check the immediate argument to CON's 'save' command and one more ... -> G_HandleAsync().
-
Generale
Use Bstrncpyz in 1 place; fix displaying err msg if write-opening savegame fails
-
Generale
Factor out snprintf'ing a maybe-modDir'd file name into macro G_ModDirSnprintf().
Mostra dettagli
... and use it in three places. In two of these uses, 1) CON {read,write}arrayfromfile and 2) G_SavePlayer, display an error message if the file name such generated is too long. In the CON commands of 1), also error out if the file couldn't be opened.
-
Generale
Move G_HandleAsync() into game.h as 'static inline' and use everywhere else.