More de-scope - remove duration on move command

This isn't even needed, as commands can just be queued up
This commit is contained in:
Marc Di Luzio 2020-06-26 22:26:27 +01:00
parent 383e834cef
commit 2f6465987d
10 changed files with 97 additions and 134 deletions

View file

@ -126,9 +126,8 @@ func (s *Server) Commands(ctx context.Context, req *rove.CommandsRequest) (*rove
var cmds []game.Command
for _, c := range req.Commands {
cmds = append(cmds, game.Command{
Bearing: c.Bearing,
Command: c.Command,
Duration: int(c.Duration)})
Bearing: c.Bearing,
Command: c.Command})
}
if err := s.world.Enqueue(id, cmds...); err != nil {