diff --git a/README.md b/README.md index 5948071..04b7945 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/code/gamestateplay.pas b/code/gamestateplay.pas index 69dfde3..d034ddc 100644 --- a/code/gamestateplay.pas +++ b/code/gamestateplay.pas @@ -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;