aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-06-22 09:16:36 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-06-22 09:16:36 +0000
commit726c1ae80037ad566c0548b60c779c8ee8dfad16 (patch)
treed20eeeab74319ab9c744c5b973be7f3141c0ed0e /src/game.c
parent64da6785055883485f3a5387f5ab88939df21c1f (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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index bf301c4..a68144e 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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) {