X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FInfotrons.c;h=366a007c87b1b33134975343e6dec0c1fa869e04;hb=3d31c6dd1b4f598453c3079d292f47f372f10151;hp=bcede9d48d6d55d4fab243313674c96e792a872d;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/Infotrons.c b/src/game_sp/Infotrons.c index bcede9d4..366a007c 100644 --- a/src/game_sp/Infotrons.c +++ b/src/game_sp/Infotrons.c @@ -4,7 +4,8 @@ #include "Infotrons.h" -static char *VB_Name = "modInfotron"; +// static char *VB_Name = "modInfotron"; + // --- Option Explicit // ========================================================================== @@ -19,8 +20,10 @@ int subAnimateInfotrons(int si) int tFld; // PseudoRegisters: - int ax, bx, cx, dx, di, X, Y; - int ah, bh, ch, dh, al, bl, cl, dl; + // int ax, bx, cx, dx, di, X, Y; + // int ah, bh, ch, dh, al, bl, cl, dl; + int ax, bx, dx, X, Y; + int al, bl; tFld = PlayField16[si]; if ((tFld & 0xFF) != fiInfotron) @@ -239,7 +242,7 @@ loc_g_138D: // infotron comes rolling from right to left Y = GetStretchY(si); dx = (bl & 0x7) + 1; StretchedSprites.BltEx(X, Y, 0); - StretchedSprites.BltEx(X - (TwoPixels * dx), Y, aniInfotronRollLeft[dx - 1]); + StretchedSprites.BltEx(X - (TwoPixels * dx), Y, aniFramesInfotronRollLeft[dx - 1]); // +++++++++++++++++++++++++++++++++++++++++++++++++++++ bl = HighByte(PlayField16[si]) + 1; // get and increment sequence# if (bl == 0x24) @@ -269,7 +272,7 @@ loc_g_13E9: // infotron comes rolling from left to right Y = GetStretchY(si); dx = (bl & 0x7) + 1; StretchedSprites.BltEx(X, Y, 0); - StretchedSprites.BltEx(X + (TwoPixels * dx), Y, aniInfotronRollRight[dx - 1]); + StretchedSprites.BltEx(X + (TwoPixels * dx), Y, aniFramesInfotronRollRight[dx - 1]); // +++++++++++++++++++++++++++++++++++++++++++++++++++++ bl = HighByte(PlayField16[si]) + 1; if (bl == 0x34) @@ -319,7 +322,7 @@ loc_g_1472: // infotron rolls left Y = GetStretchY(si); dx = (bl & 0xF) + 1; StretchedSprites.BltEx(X, Y, 0); - StretchedSprites.BltEx(X - (TwoPixels * dx), Y, aniInfotronRollLeft[dx - 1]); + StretchedSprites.BltEx(X - (TwoPixels * dx), Y, aniFramesInfotronRollLeft[dx - 1]); // +++++++++++++++++++++++++++++++++++++++++++++++++++++ bl = HighByte(PlayField16[si]) + 1; // retrieve and increment sequence# if (bl < 0x52) @@ -356,7 +359,7 @@ loc_g_14E0: // infotron rolls right Y = GetStretchY(si); dx = (bl & 0x7) + 1; StretchedSprites.BltEx(X, Y, 0); - StretchedSprites.BltEx(X + (TwoPixels * dx), Y, aniInfotronRollRight[dx - 1]); + StretchedSprites.BltEx(X + (TwoPixels * dx), Y, aniFramesInfotronRollRight[dx - 1]); // +++++++++++++++++++++++++++++++++++++++++++++++++++++ bl = HighByte(PlayField16[si]) + 1; if (bl < 0x62)