Jofthomas HF staff commited on
Commit
1035404
·
1 Parent(s): 9a7111f

cycle_num fix

Browse files
Files changed (1) hide show
  1. src/components/Game.tsx +2 -2
src/components/Game.tsx CHANGED
@@ -22,10 +22,10 @@ import { EndGame } from './EndGame.tsx';
22
  import { LOBBY_SIZE } from '../../convex/constants';
23
 
24
  export const SHOW_DEBUG_UI = !!import.meta.env.VITE_SHOW_DEBUG_UI;
25
-
26
  export function GameStateLabel(game: GameObj, me: PlayerDescription | undefined) {
27
  let humans = [...game.world.players.values()].filter(player => player.human).length
28
- let cycle_num=0
29
  switch (game.world.gameCycle.cycleState) {
30
  case 'Day':
31
  cycle_num+=1;
 
22
  import { LOBBY_SIZE } from '../../convex/constants';
23
 
24
  export const SHOW_DEBUG_UI = !!import.meta.env.VITE_SHOW_DEBUG_UI;
25
+ let cycle_num=0
26
  export function GameStateLabel(game: GameObj, me: PlayerDescription | undefined) {
27
  let humans = [...game.world.players.values()].filter(player => player.human).length
28
+
29
  switch (game.world.gameCycle.cycleState) {
30
  case 'Day':
31
  cycle_num+=1;