diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_admin.c | 4 | ||||
-rw-r--r-- | src/game/g_admin.h | 1 | ||||
-rw-r--r-- | src/game/g_team.c | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 0677e6f..b6e115b 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -4539,3 +4539,7 @@ void G_admin_cleanup( void ) BG_DefragmentMemory( ); } +void G_admin_writeconfig( void ) +{ + if ( g_admin_levels ) admin_writeconfig( ); +} diff --git a/src/game/g_admin.h b/src/game/g_admin.h index 61b012c..8132607 100644 --- a/src/game/g_admin.h +++ b/src/game/g_admin.h @@ -220,5 +220,6 @@ void G_admin_buffer_begin( void ); void G_admin_buffer_end( gentity_t *ent ); void G_admin_duration( int secs, char *duration, int dursize ); void G_admin_cleanup( void ); +void G_admin_writeconfig( void ); #endif /* ifndef _G_ADMIN_H */ diff --git a/src/game/g_team.c b/src/game/g_team.c index cea0b25..246c072 100644 --- a/src/game/g_team.c +++ b/src/game/g_team.c @@ -224,7 +224,7 @@ void G_LeaveTeamReal( gentity_t *self, qboolean reset_score ) G_namelog_update_score( self->client ); - admin_writeconfig(); + G_admin_writeconfig(); } void G_LeaveTeam( gentity_t *self ) |