Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
add angleY, rename angle to angleX (breaking change)
Browse files Browse the repository at this point in the history
see #24
  • Loading branch information
markus-wa committed Apr 11, 2020
1 parent 7170951 commit b2e89f8
Show file tree
Hide file tree
Showing 12 changed files with 550 additions and 456 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ To run tests [Git LFS](https://git-lfs.github.com) is required.
```sh
git submodule init
git submodule update
pushd test/cs-demos && git lfs pull && popd
pushd test/cs-demos && git lfs pull -I '*' && popd
go test ./...
```

Expand Down
3 changes: 2 additions & 1 deletion csminify.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ func (m *minifier) snapshot() rep.Snapshot {
Armor: pl.Armor,
FlashDuration: float32(roundTo(float64(pl.FlashDuration), 0.1)), // Round to nearest 0.1 sec - saves space in JSON
Positions: []rep.Point{r3VectorToPoint(pl.Position)},
Angle: int(pl.ViewDirectionX),
AngleX: int(pl.ViewDirectionX),
AngleY: int(pl.ViewDirectionY),
}

// FIXME: Smoothify Positions
Expand Down
Loading

0 comments on commit b2e89f8

Please sign in to comment.