confirm bomb sends

pull/5/head
Jordan Orelli 10 years ago
parent 18399fe926
commit 38f26291a8

@ -291,6 +291,7 @@ func bomb(conn *Connection, to *System) {
conn.bombs -= 1 conn.bombs -= 1
delay := conn.System().TimeTo(to) delay := conn.System().TimeTo(to)
delay = time.Duration(int64(float64(delay/time.Nanosecond) * 1.1)) delay = time.Duration(int64(float64(delay/time.Nanosecond) * 1.1))
fmt.Fprintf(conn, "sending bomb to %s. ETA: %v\n", to.name, delay)
After(delay, func() { After(delay, func() {
to.Bombed(conn) to.Bombed(conn)
}) })

Loading…
Cancel
Save