annotate CShow.cpp @ 1122:45a8862d8b6e

small mistake in ApplyDecals()
author zipi
date Thu, 30 May 2013 21:14:24 +0100
parents 39f42990698f
children 0aeac0b9ca30
rev   line source
1035
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
1 #include <assert.h>
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
2
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
3 #include "CShow.h"
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
4
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
5 #include "VideoPlayer.h"
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
6 #include "Mouse.h"
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
7
1035
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
8 void CShow::PlayMovie(MovieType eVideo, bool bShowMouseAfterPlayback)
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
9 {
1035
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
10 if (bNoVideo) return;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
11
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
12 switch (eVideo)
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
13 {
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
14 case MOVIE_3DOLogo: VideoPlayer::MovieLoop("3dologo", 0, 0, 1); break;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
15 case MOVIE_NWCLogo: VideoPlayer::MovieLoop("new world logo", 0, 1, 1); break;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
16 case MOVIE_JVC: VideoPlayer::MovieLoop("jvc", 0, 1, 1); break;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
17 case MOVIE_Intro: VideoPlayer::MovieLoop("Intro", 0, 1, 1); break;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
18 case MOVIE_Emerald: VideoPlayer::MovieLoop("Intro Post", 0, 1, 1); break;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
19 case MOVIE_Death: VideoPlayer::MovieLoop("losegame", 2, 1, 1); break;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
20 case MOVIE_Outro: VideoPlayer::MovieLoop("end_seq1", 20, 1, 1); break;
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
21
1035
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
22 default:
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
23 assert(false && "Invalid movie requested in " __FUNCTION__);
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
24 break;
306ec23b37df 004C1EE5 & other stuff
Nomad
parents: 1016
diff changeset
25 }
1016
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
26 }
c45d51b3f4f4 Included header files cleanup
Grumpy7
parents:
diff changeset
27