Skip to content

Commit

Permalink
Disable dragging, sometimes conflicts with OnScreenMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Dec 10, 2017
1 parent 2c39d43 commit e5f47b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Features:

* Terrain editor (visually edit size and all generation parameters - octaves, smoothness, heterogeneous...). Press F10 to show.
* Terrain shader with 3 blended texture layers and darkened slopes (parameters are also editable during the game, in the menu after pressing F10).
* Simple walking in FPS mode (you can use AWSD keys, arrow keys, drag with mouse, press F4 to toggle mouse look, C to crouch, Space to jump, Shift to run).
* Simple walking in FPS mode (you can use AWSD keys, arrow keys, press F4 to toggle mouse look, C to crouch, Space to jump, Shift to run).
* You can save generated terrain as 3D model in X3D format (e.g. to inspect in view3dscene for debugging, or to use in other games as static mesh, without the need to deal with TTerrainNoise class).
* You can spawn trees (right mouse button). Crosshair appears in mouse look mode.
* Evil squirrels with shooting targets spawn around you.
Expand Down
3 changes: 3 additions & 0 deletions code/gamestateplay.pas
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ procedure TStatePlay.Start;
Vector3(0, 1, 0)
);
FixCamera; // fix SceneManager.WalkCamera.Position.Y

// disable dragging, sometimes collides with OnScreenMenu usage
SceneManager.WalkCamera.Input := SceneManager.WalkCamera.Input - [ciMouseDragging];
end;

function TStatePlay.HeightAboveTerrain(Pos: TVector3; out Y: Single): boolean;
Expand Down

0 comments on commit e5f47b3

Please # to comment.