]> git.lizzy.rs Git - mt.git/blobdiff - playerpos.go
Add WaitGroup to SerializePkt
[mt.git] / playerpos.go
index 946bbaeb11881957dc06a0d088bd616785d26ec8..1a388af66944b601eab3e6bd5b5dd452e064c54e 100644 (file)
@@ -72,3 +72,7 @@ func (p PlayerPos) FOV() float32 {
 func (p *PlayerPos) SetFOV(fov float32) {
        p.FOV80 = uint8(fov * 80)
 }
+
+func (p PlayerPos) StoodOn() [3]int16 {
+       return p.Pos().Sub(Vec{1: 5}).Int()
+}