From 5ff84fb7034ebba61ef00fa6479a76ee7a9c2642 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 29 Jan 2021 18:07:07 -0500 Subject: [PATCH] Fix --- commands/games-mp/car-race.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/car-race.js b/commands/games-mp/car-race.js index 19a2014c..da2c7b6b 100644 --- a/commands/games-mp/car-race.js +++ b/commands/games-mp/car-race.js @@ -411,6 +411,7 @@ module.exports = class CarRaceCommand extends Command { } 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.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); @@ -426,7 +427,6 @@ module.exports = class CarRaceCommand extends Command { } else if (turnWin) { greyscale(ctx, bg.width - 110 - 125, 50, 125, 125); } - ctx.drawImage(oppoData.avatar, bg.width - 110 - 125, 50, 125, 125); } return canvas.toBuffer(); }