1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix a couple issues

This commit is contained in:
NyakoFox 2024-11-17 15:18:10 -04:00
parent 44e8bce9a0
commit bd869d9286
2 changed files with 3 additions and 0 deletions

View file

@ -2460,6 +2460,7 @@ entclass* entityclass::createentity(int xp, int yp, int t, int meta1, int meta2,
const char* type = legacy_id_to_entity(customenemy); const char* type = legacy_id_to_entity(customenemy);
set_enemy_type(&entity, type); set_enemy_type(&entity, type);
set_enemy_colour(&entity); set_enemy_colour(&entity);
break;
} }
case 100: // Invalid enemy, but gets treated as a teleporter case 100: // Invalid enemy, but gets treated as a teleporter
entity.type = EntityType_TELEPORTER; entity.type = EntityType_TELEPORTER;

View file

@ -2353,6 +2353,8 @@ void Graphics::drawentity(const int i, const int yoff)
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); 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);
break; break;
} }
case EntityRenderType_INVALID:
break;
} }
} }