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:
parent
383e834cef
commit
2f6465987d
10 changed files with 97 additions and 134 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue