From 8e1744d1ab4024ce40e5b3adb27ed765de1f7540 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 5 Apr 2003 20:10:54 +0000 Subject: updated and fixed for VC6 svn-id: r6916 --- sky.dsp | 4 ++++ sky/text.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sky.dsp b/sky.dsp index bd9b797e93..63e5fb592e 100644 --- a/sky.dsp +++ b/sky.dsp @@ -187,6 +187,10 @@ SOURCE=.\sky\struc.h # End Source File # Begin Source File +SOURCE=.\sky\text.cpp +# End Source File +# Begin Source File + SOURCE=.\sky\timer.cpp # End Source File # End Group diff --git a/sky/text.cpp b/sky/text.cpp index 30440a8ae0..7423462e6e 100644 --- a/sky/text.cpp +++ b/sky/text.cpp @@ -97,7 +97,7 @@ void SkyState::getText(uint32 textNr) { //load text #"textNr" to _textBuffer uint32 fileNo = (sectionNo >> 2); fileNo += ((_language * NO_OF_TEXT_SECTIONS) + 60600); - _itemList[FIRST_TEXT_SEC + sectionNo] = (void *)loadFile(fileNo, NULL); + _itemList[FIRST_TEXT_SEC + sectionNo] = (void *)loadFile((uint16)fileNo, NULL); } uint8 *textItemPtr = (uint8 *)_itemList[FIRST_TEXT_SEC + sectionNo]; -- cgit v1.2.3