Skip to content

Commit ee99853

Browse files
desttinghimZeno-
authored andcommittedApr 23, 2017
Remove view_bobbing bool in settings (#5644)
1 parent 0c34fe2 commit ee99853

File tree

5 files changed

+0
-12
lines changed

5 files changed

+0
-12
lines changed
 

‎builtin/settingtypes.txt

-3
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,6 @@ cloud_height (Cloud height) int 120
492492
# Values larger than 26 will start to produce sharp cutoffs at cloud area corners.
493493
cloud_radius (Cloud radius) int 12
494494

495-
# Enables view bobbing when walking.
496-
view_bobbing (Enable view bobbing) bool true
497-
498495
# Multiplier for view bobbing.
499496
# For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double.
500497
view_bobbing_amount (View bobbing factor) float 1.0

‎minetest.conf.example

-5
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,6 @@
569569
# type: int
570570
# cloud_radius = 12
571571

572-
# Enables view bobbing when walking.
573-
# type: bool
574-
# view_bobbing = true
575-
576572
# Multiplier for view bobbing.
577573
# For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double.
578574
# type: float
@@ -1815,4 +1811,3 @@
18151811
# Print the engine's profiling data in regular intervals (in seconds). 0 = disable. Useful for developers.
18161812
# type: int
18171813
# profiler_print_interval = 0
1818-

‎src/camera.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ Camera::Camera(scene::ISceneManager* smgr, MapDrawControl& draw_control,
102102
m_cache_view_bobbing_amount = g_settings->getFloat("view_bobbing_amount");
103103
m_cache_fov = g_settings->getFloat("fov");
104104
m_cache_zoom_fov = g_settings->getFloat("zoom_fov");
105-
m_cache_view_bobbing = g_settings->getBool("view_bobbing");
106105
m_nametags.clear();
107106
}
108107

@@ -467,7 +466,6 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime,
467466
const bool swimming = (movement_XZ || player->swimming_vertical) && player->in_liquid;
468467
const bool climbing = movement_Y && player->is_climbing;
469468
if ((walking || swimming || climbing) &&
470-
m_cache_view_bobbing &&
471469
(!g_settings->getBool("free_move") || !m_client->checkLocalPrivilege("fly")))
472470
{
473471
// Start animation

‎src/camera.h

-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ class Camera
231231
f32 m_cache_view_bobbing_amount;
232232
f32 m_cache_fov;
233233
f32 m_cache_zoom_fov;
234-
bool m_cache_view_bobbing;
235234

236235
std::list<Nametag *> m_nametags;
237236
};

‎src/defaultsettings.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ void set_default_settings(Settings *settings)
171171

172172
// Effects
173173
settings->setDefault("directional_colored_fog", "true");
174-
settings->setDefault("view_bobbing", "true");
175174
settings->setDefault("inventory_items_animations", "false");
176175
settings->setDefault("mip_map", "false");
177176
settings->setDefault("anisotropic_filter", "false");

0 commit comments

Comments
 (0)