fixed two offsets for V2 and two warnings

svn-id: r7185
This commit is contained in:
Paweł Kołodziejski 2003-04-28 18:19:48 +00:00
parent 12c44ba73d
commit 850ee739af
3 changed files with 16 additions and 6 deletions

View file

@ -478,7 +478,9 @@ void SkyState::showIntroText(uint32 *&cmdPtr) {
//save current screen contents
byte *savePtr = (byte *)_workScreen + startPos;
for (unsigned int i = 0; i < height; i++) {
uint i, j;
for (i = 0; i < height; i++) {
memcpy(saveBuf, savePtr, width);
saveBuf += width;
savePtr += GAME_SCREEN_WIDTH;
@ -489,11 +491,11 @@ void SkyState::showIntroText(uint32 *&cmdPtr) {
byte *textBuf = _introTextSpace + sizeof(struct dataFileHeader);
byte *curPos = (byte *)_workScreen + startPos;
for (unsigned int i = 0; i < height; i++) {
for (i = 0; i < height; i++) {
byte *prevPos = curPos;
for (unsigned int j = 0; j < width; j++) {
for (j = 0; j < width; j++) {
uint8 pixel = *textBuf++;
if (pixel)