aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSmallJoker <st.rentsch@hotmail.com>2014-08-21 20:01:03 +0200
committersapier <Sapier at GMX dot net>2014-08-22 22:19:07 +0200
commite4d570eafc455b4ebd31503424421c63b21e2852 (patch)
treeae733e38b0463561b1aac39b84b6f0905a6e9d33 /src
parentc58b9d8da32cf52ecf2e244296866fac76e09ba4 (diff)
downloadminetest-e4d570eafc455b4ebd31503424421c63b21e2852.tar.gz
minetest-e4d570eafc455b4ebd31503424421c63b21e2852.tar.bz2
minetest-e4d570eafc455b4ebd31503424421c63b21e2852.zip
Reduce time of red screen when damaged
10 seconds in PvP is very long and annoying.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 768193147..e25210337 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2399,8 +2399,8 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
damage_flash += 8.0 * event.player_damage.amount;
player->hurt_tilt_timer = 1.5;
- player->hurt_tilt_strength = event.player_damage.amount/2;
- player->hurt_tilt_strength = rangelim(player->hurt_tilt_strength, 2.0, 10.0);
+ player->hurt_tilt_strength = event.player_damage.amount/4;
+ player->hurt_tilt_strength = rangelim(player->hurt_tilt_strength, 1.0, 4.0);
MtEvent *e = new SimpleTriggerEvent("PlayerDamage");
gamedef->event()->put(e);