Skip to content

Commit

Permalink
Remove view_bobbing bool in settings (#5644)
Browse files Browse the repository at this point in the history
  • Loading branch information
desttinghim authored and Zeno- committed Apr 23, 2017
1 parent 0c34fe2 commit ee99853
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions builtin/settingtypes.txt
Expand Up @@ -492,9 +492,6 @@ cloud_height (Cloud height) int 120
# Values larger than 26 will start to produce sharp cutoffs at cloud area corners.
cloud_radius (Cloud radius) int 12

# Enables view bobbing when walking.
view_bobbing (Enable view bobbing) bool true

# Multiplier for view bobbing.
# For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double.
view_bobbing_amount (View bobbing factor) float 1.0
Expand Down
5 changes: 0 additions & 5 deletions minetest.conf.example
Expand Up @@ -569,10 +569,6 @@
# type: int
# cloud_radius = 12

# Enables view bobbing when walking.
# type: bool
# view_bobbing = true

# Multiplier for view bobbing.
# For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double.
# type: float
Expand Down Expand Up @@ -1815,4 +1811,3 @@
# Print the engine's profiling data in regular intervals (in seconds). 0 = disable. Useful for developers.
# type: int
# profiler_print_interval = 0

2 changes: 0 additions & 2 deletions src/camera.cpp
Expand Up @@ -102,7 +102,6 @@ Camera::Camera(scene::ISceneManager* smgr, MapDrawControl& draw_control,
m_cache_view_bobbing_amount = g_settings->getFloat("view_bobbing_amount");
m_cache_fov = g_settings->getFloat("fov");
m_cache_zoom_fov = g_settings->getFloat("zoom_fov");
m_cache_view_bobbing = g_settings->getBool("view_bobbing");
m_nametags.clear();
}

Expand Down Expand Up @@ -467,7 +466,6 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime,
const bool swimming = (movement_XZ || player->swimming_vertical) && player->in_liquid;
const bool climbing = movement_Y && player->is_climbing;
if ((walking || swimming || climbing) &&
m_cache_view_bobbing &&
(!g_settings->getBool("free_move") || !m_client->checkLocalPrivilege("fly")))
{
// Start animation
Expand Down
1 change: 0 additions & 1 deletion src/camera.h
Expand Up @@ -231,7 +231,6 @@ class Camera
f32 m_cache_view_bobbing_amount;
f32 m_cache_fov;
f32 m_cache_zoom_fov;
bool m_cache_view_bobbing;

std::list<Nametag *> m_nametags;
};
Expand Down
1 change: 0 additions & 1 deletion src/defaultsettings.cpp
Expand Up @@ -171,7 +171,6 @@ void set_default_settings(Settings *settings)

// Effects
settings->setDefault("directional_colored_fog", "true");
settings->setDefault("view_bobbing", "true");
settings->setDefault("inventory_items_animations", "false");
settings->setDefault("mip_map", "false");
settings->setDefault("anisotropic_filter", "false");
Expand Down

0 comments on commit ee99853

Please sign in to comment.