Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
salvakantero committed Dec 21, 2023
1 parent f980f9f commit 8907bb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.c
Expand Up @@ -1180,15 +1180,15 @@ void CheckObjects() {
DeleteObject(x, y);
if (spr[0].dir == D_left) x--;
MakeMagic(x, y-4); // magic effect
if (x>0) MakeBomb(x-1, y-4); // 20% chance of activating bomb
if (x>0) MakeBomb(x-1, y-4); // possible bomb
}
}

// returns the objects available in a given room.
// used by the pause/status screen. DrawStatus()
u8 CountObjects(u8 index) {
ctr = 0; // object counter
index *= 10; // position in the array Y of objects.
index *= 10; // position in the Y array of objects.
for (u8 i = 0; i < 10; ++i)
// y=0 means that the object was picked up
if (arrayObjectsYCopy[index + i] > 0)
Expand Down Expand Up @@ -1306,7 +1306,7 @@ void DrawSprite(TSpr *pSpr) __z88dk_fastcall {
width, height, g_maskTable);
}

// draws a portion of the map in the coordinates of the sprite (to delete it)
// draws a portion of the map at the sprite coordinates (to delete it)
void DeleteSprite(TSpr *pSpr) __z88dk_fastcall {
u8 width = 4;
u8 height = 4 + (pSpr->py & 3 ? 1 : 0);
Expand Down

0 comments on commit 8907bb6

Please sign in to comment.