diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-22 09:16:36 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-22 09:16:36 +0000 |
commit | 726c1ae80037ad566c0548b60c779c8ee8dfad16 (patch) | |
tree | d20eeeab74319ab9c744c5b973be7f3141c0ed0e /src/game.c | |
parent | 64da6785055883485f3a5387f5ab88939df21c1f (diff) |
Add game_shutdown()
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@106 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -291,6 +291,15 @@ Game *game_new(int width, int height, int disable_vbos, int disable_fbos, int di } +void game_shutdown(Game *game) { + + render_shutdown(game->render); + audio_shutdown(game->audio); + + free(game); + +} + /* Check if the player needs to be moved to another room */ void game_check_handoff(Game *game) { |