diff options
Diffstat (limited to 'sword2/function.cpp')
-rw-r--r-- | sword2/function.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp index fbde8e44d3..ea4a89b584 100644 --- a/sword2/function.cpp +++ b/sword2/function.cpp @@ -446,14 +446,12 @@ int32 Logic::fnPlayCredits(int32 *params) { // Read the "Smacker" logo - f.open("credits.bmp"); - uint16 logoWidth = 0; uint16 logoHeight = 0; uint8 *logoData = NULL; uint8 palette[1024]; - if (f.isOpen()) { + if (f.open("credits.bmp")) { logoWidth = f.readUint16LE(); logoHeight = f.readUint16LE(); @@ -491,8 +489,7 @@ int32 Logic::fnPlayCredits(int32 *params) { char textLine[80]; - f.open("credits.clu"); - if (!f.isOpen()) { + if (!f.open("credits.clu")) { warning("Can't find credits.clu"); return IR_CONT; } |