Skip to content

Commit bd869d9

Browse files
committed
Fix a couple issues
1 parent 44e8bce commit bd869d9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

desktop_version/src/Entity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,6 +2460,7 @@ entclass* entityclass::createentity(int xp, int yp, int t, int meta1, int meta2,
24602460
const char* type = legacy_id_to_entity(customenemy);
24612461
set_enemy_type(&entity, type);
24622462
set_enemy_colour(&entity);
2463+
break;
24632464
}
24642465
case 100: // Invalid enemy, but gets treated as a teleporter
24652466
entity.type = EntityType_TELEPORTER;

desktop_version/src/Graphics.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,8 @@ void Graphics::drawentity(const int i, const int yoff)
23532353
draw_grid_tile(grphx.im_sprites, obj.entities[i].drawframe, xp, yp - yoff, sprites_rect.w, sprites_rect.h, obj.entities[i].realcol, 6, 6);
23542354
break;
23552355
}
2356+
case EntityRenderType_INVALID:
2357+
break;
23562358
}
23572359
}
23582360

0 commit comments

Comments
 (0)