Skip to content

Commit

Permalink
Fix a couple issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NyakoFox committed Nov 17, 2024
1 parent 44e8bce commit bd869d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions desktop_version/src/Entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
set_enemy_type(&entity, type);
set_enemy_colour(&entity);
break;
}
case 100: // Invalid enemy, but gets treated as a teleporter
entity.type = EntityType_TELEPORTER;
Expand Down
2 changes: 2 additions & 0 deletions desktop_version/src/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
break;
}
case EntityRenderType_INVALID:
break;
}
}

Expand Down

0 comments on commit bd869d9

Please sign in to comment.