Skip to content

Commit 94db727

Browse files
committed
small fixes
1 parent 34ccdba commit 94db727

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

client/src/playback/Actions.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -655,16 +655,15 @@ export const ACTION_DEFINITIONS: Record<schema.Action, typeof Action<ActionUnion
655655
draw(match: Match, ctx: CanvasRenderingContext2D): void {
656656
const body = match.currentRound.bodies.getById(this.robotId)
657657
const renderCoords = renderUtils.getRenderCoords(
658-
body.pos.x - 1 + body.size / 2,
659-
body.pos.y + body.size / 2,
658+
body.pos.x,
659+
body.pos.y,
660660
match.map.dimension,
661-
true
662661
)
663662
renderUtils.renderCenteredImageOrLoadingIndicator(
664663
ctx,
665664
getImageIfLoaded('robots/squeak.png'),
666665
renderCoords,
667-
1
666+
body.size
668667
)
669668
}
670669
},

client/src/playback/Map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export class CurrentMap {
318318
if (ratTrap) {
319319
info.push('Rat Trap')
320320
}
321-
if (ratTrap) {
321+
if (catTrap) {
322322
info.push('Cat Trap')
323323
}
324324
if (cheese) {

0 commit comments

Comments
 (0)