aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_ticktest.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_ticktest.go')
-rw-r--r--internal/game/cmd_ticktest.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/game/cmd_ticktest.go b/internal/game/cmd_ticktest.go
deleted file mode 100644
index 6cadab7..0000000
--- a/internal/game/cmd_ticktest.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package game
-
-import (
- "fmt"
-
- "thirdcollapse/internal/net"
-)
-
-func (g *Game) doTickTest(sess *net.Session) {
- count := 0
- g.Ticks.Subscribe(5, func() bool {
- count++
- sess.WriteLine(fmt.Sprintf("[Tick #%d] 600ms heartbeat is working.", count))
- if count >= 3 {
- sess.WriteLine("[Tick test complete.]")
- return false
- }
- return true
- })
- sess.WriteLine("Tick test started — you'll see 3 messages at 5-tick intervals while commands still work.")
-}