We used two queries to get coordinates of camera pivot. It seems useless, as we always use both coordinates.
Details
- Reviewers
- None
- Group Reviewers
Restricted Owners Package (Owns No Changed Paths) - Commits
- rP23264: Merges two camera JS interface functions into the single one.
- Apply the patch and compile the game
- Run the game on some map
- Make sure that camera jumping works
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Successful build - Chance fights ever on the side of the prudent.
Link to build: https://jenkins.wildfiregames.com/job/vs2015-differential/750/display/redirect
Successful build - Chance fights ever on the side of the prudent.
Linter detected issues: Executing section Source... source/graphics/scripting/JSInterface_GameView.h | 1| /*·Copyright·(C)·2018·Wildfire·Games. | | [NORMAL] LicenseYearBear: | | License should have "2019" year instead of "2018" source/graphics/scripting/JSInterface_GameView.h | 30| namespace·JSI_GameView | | [MAJOR] CPPCheckBear (syntaxError): | | Code 'namespaceJSI_GameView{' is invalid C code. Use --std or --language to configure the language. Executing section JS... Executing section cli...
Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1266/display/redirect
source/graphics/scripting/JSInterface_GameView.cpp | ||
---|---|---|
80 ↗ | (On Diff #10579) | ToJSVal<Vector3D>? |
source/graphics/scripting/JSInterface_GameView.cpp | ||
---|---|---|
168 ↗ | (On Diff #10579) | Perhaps this even works, I didn't try: |
source/graphics/scripting/JSInterface_GameView.cpp | ||
---|---|---|
168 ↗ | (On Diff #10579) | Thx, I will try. |
@elexis It seems that we don't have conversion for CVector3D, but we have for CFixedVector3D.
We don't have JS conversion for CVector3D. Having it may lead to bugs that someone passed CVector3D to the simulation. So I'm leaving the code as is, as it doesn't change the behaviour.
We might want to refactor such cases later.