Skip to content

Commit

Permalink
Minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Apr 5, 2024
1 parent 0119e4b commit 31a900e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/stendhal/entity/RPEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,10 @@ export class RPEntity extends ActiveEntity {
}

drawMain(ctx: CanvasRenderingContext2D) {
let filename;
if (typeof(this["outfit"]) != "undefined" || typeof(this["outfit_ext"]) != "undefined") {
this.drawMultipartOutfit(ctx);
} else {
filename = stendhal.paths.sprites + "/" + this.spritePath + "/" + this["class"];
let filename = stendhal.paths.sprites + "/" + this.spritePath + "/" + this["class"];
if (typeof(this["subclass"]) != "undefined") {
filename = filename + "/" + this["subclass"];
}
Expand Down

0 comments on commit 31a900e

Please sign in to comment.