Skip to content

Commit 034782f

Browse files
FOV + name fix if overridden by gamemode
1 parent aa5ca17 commit 034782f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ export default class Client {
494494
this.camera.cameraData.FOV = 0.35;
495495
} else {
496496
this.camera.setLevel(30);
497+
this.camera.cameraData.FOV = 0.35;
497498
}
498499

499500
this.camera.cameraData.statsAvailable = 0;
@@ -541,9 +542,9 @@ export default class Client {
541542

542543
const tank = camera.cameraData.player = camera.relationsData.owner = camera.relationsData.parent = new TankBody(this.game, camera, this.inputs);
543544
tank.setTank(Tank.Basic);
545+
tank.nameData.values.name = name;
544546
this.game.arena.spawnPlayer(tank, this);
545547
camera.setLevel(camera.cameraData.values.respawnLevel);
546-
tank.nameData.values.name = name;
547548

548549
if (this.hasCheated()) this.setHasCheated(true);
549550

0 commit comments

Comments
 (0)