summaryrefslogtreecommitdiff
path: root/source/sv_game.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-04-23 15:02:41 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-04-23 15:02:41 +0000
commit49e6170b49fbb933eddec6d0e3f946320c68832f (patch)
tree88d228d6f89103710074fdba041ce80584d5caa6 /source/sv_game.c
parent8c795585fb0c6c9178d9981f6943da04b7279205 (diff)
Added `dumpents' server command.
Added support for `cl_noskins' value of 2 (default all female skins to `female/athena', all male skins to `male/grunt'). Renamed `scoreshot' command to `aashot', added `aadump' command. Fixed several alignment issues on ARM architecture. Server browser menu now indicates full and password protected servers with color codes. Implemented history search in console with Ctrl+R, Ctrl+S. Removed `cl_railtrail_alpha' variable, all `cl_rail*_color' variables now accept colors in #RRGGBBAA format. Added `map_override' cvar (enables loading map entity lump from external maps/*.ent file). Made `quit' command accept extra arguments. Made `draw' command accept arbitrary colors in #RRGGBBAA format. Fixed debian packages.
Diffstat (limited to 'source/sv_game.c')
-rw-r--r--source/sv_game.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/source/sv_game.c b/source/sv_game.c
index 9a12d2a..db1b72a 100644
--- a/source/sv_game.c
+++ b/source/sv_game.c
@@ -795,22 +795,21 @@ void SV_InitGameProgs ( void ) {
if( !entry )
#endif
{
- // try refdir first for development purposes
- Q_concat( path, sizeof( path ), sys_refdir->string,
- PATH_SEP_STRING GAMELIB, NULL );
- entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library );
+ // try gamedir first
+ if( fs_game->string[0] ) {
+ Q_concat( path, sizeof( path ), sys_libdir->string,
+ PATH_SEP_STRING, fs_game->string, PATH_SEP_STRING GAMELIB, NULL );
+ entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library );
+ }
if( !entry ) {
- // try gamedir
- if( fs_game->string[0] ) {
- Q_concat( path, sizeof( path ), sys_libdir->string,
- PATH_SEP_STRING, fs_game->string, PATH_SEP_STRING GAMELIB, NULL );
- entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library );
- }
-
+ // then try baseq2
+ Q_concat( path, sizeof( path ), sys_libdir->string,
+ PATH_SEP_STRING BASEGAME PATH_SEP_STRING GAMELIB, NULL );
+ entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library );
if( !entry ) {
- // try baseq2
- Q_concat( path, sizeof( path ), sys_libdir->string,
- PATH_SEP_STRING BASEGAME PATH_SEP_STRING GAMELIB, NULL );
+ // then try to fall back to refdir
+ Q_concat( path, sizeof( path ), sys_refdir->string,
+ PATH_SEP_STRING GAMELIB, NULL );
entry = Sys_LoadLibrary( path, "GetGameAPI", &game_library );
if( !entry ) {
Com_Error( ERR_DROP, "Failed to load game DLL" );