aboutsummaryrefslogtreecommitdiff
path: root/sky/intro.cpp
diff options
context:
space:
mode:
authorJoost Peters2003-03-24 10:55:58 +0000
committerJoost Peters2003-03-24 10:55:58 +0000
commit12c0a6834a4681981a0d0bbea3fbc38cec45924c (patch)
treeb9f3dadb155229c4ec267b2b504a4bbf296648fa /sky/intro.cpp
parenteb31490e3933a3b5e3a02dc836777403ff13e69f (diff)
downloadscummvm-rg350-12c0a6834a4681981a0d0bbea3fbc38cec45924c.tar.gz
scummvm-rg350-12c0a6834a4681981a0d0bbea3fbc38cec45924c.tar.bz2
scummvm-rg350-12c0a6834a4681981a0d0bbea3fbc38cec45924c.zip
Some more cleanup, loadFile now returns a uint8*/byte* so no casting is needed anymore.
svn-id: r6854
Diffstat (limited to 'sky/intro.cpp')
-rw-r--r--sky/intro.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/sky/intro.cpp b/sky/intro.cpp
index 6d4bd115d3..3fe2c19811 100644
--- a/sky/intro.cpp
+++ b/sky/intro.cpp
@@ -218,11 +218,11 @@ uint32 *command_pointer = (uint32 *)zero_commands;
void SkyState::initVirgin() {
- _tempPal = (uint8 *)loadFile(60111, NULL);
+ _tempPal = loadFile(60111, NULL);
if (_tempPal != NULL)
setPalette(_tempPal);
- _workScreen = (uint8 *)loadFile(60110, NULL);
+ _workScreen = loadFile(60110, NULL);
if (_workScreen != NULL)
showScreen();
@@ -234,8 +234,8 @@ void SkyState::initVirgin() {
void SkyState::intro(void) {
- _workScreen = (uint8 *)loadFile(60112, NULL); //while virgin screen is up, load rev screen
- _tempPal = (uint8 *)loadFile(60113, NULL);
+ _workScreen = loadFile(60112, NULL); //while virgin screen is up, load rev screen
+ _tempPal = loadFile(60113, NULL);
//loadSectionMusic(0);
@@ -245,15 +245,15 @@ void SkyState::intro(void) {
// fn_start_music();
delay(3000); //and another 3 seconds.
- fn_fade_down(0); //remove virgin screen
+ fnFadeDown(0); //remove virgin screen
showScreen();
paletteFadeUp(_tempPal);
free (_tempPal);
free (_workScreen);
//while rev is up, load gibbons screen
- _workScreen = (uint8 *)loadFile(60114, NULL);
- _tempPal = (uint8 *)loadFile(60115, NULL);
+ _workScreen = loadFile(60114, NULL);
+ _tempPal = loadFile(60115, NULL);
intro_text_space = (uint8 *)malloc(10000);
intro_text_save = (uint8 *)malloc(10000);
@@ -262,7 +262,7 @@ void SkyState::intro(void) {
delay(8000); // keep revolution up for 8 seconds
- fn_fade_down(0);
+ fnFadeDown(0);
showScreen();
paletteFadeUp(_tempPal);