diff --git a/commands/games-mp/car-race.js b/commands/games-mp/car-race.js index 6ea1fdde..19a2014c 100644 --- a/commands/games-mp/car-race.js +++ b/commands/games-mp/car-race.js @@ -408,8 +408,9 @@ module.exports = class CarRaceCommand extends Command { const x = (bg.width / 2) - 50; ctx.fillRect(x - 5, 85, 110, 110); ctx.drawImage(win.id === userData.user.id ? userData.avatar : oppoData.avatar, x, 90, 100, 100); - } else if (turnWin) { + } else { const stars = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'stars.png')); + const vs = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'vs.png')); ctx.fillStyle = 'black'; ctx.fillRect(105, 45, 135, 135); ctx.drawImage(userData.avatar, 110, 50, 125, 125); @@ -425,13 +426,6 @@ module.exports = class CarRaceCommand extends Command { } else if (turnWin) { greyscale(ctx, bg.width - 110 - 125, 50, 125, 125); } - } else { - const vs = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'vs.png')); - ctx.drawImage(vs, (bg.width / 2) - (75 / 2), 80, 75, 75); - ctx.fillStyle = 'black'; - ctx.fillRect(105, 45, 135, 135); - ctx.drawImage(userData.avatar, 110, 50, 125, 125); - ctx.fillRect(bg.width - 115 - 125, 45, 135, 135); ctx.drawImage(oppoData.avatar, bg.width - 110 - 125, 50, 125, 125); } return canvas.toBuffer();