1
0
Files
cuberite-2a/src
peterbell10 319b30eec6 Fix fishing timer (#4217)
Fixes ["Fishing Speed Too Slow"](https://forum.cuberite.org/thread-3175-post-29000.html#pid29000).

Interestingly, the constants @NiLSPACE points out are actually correct:
```cpp
(Random.RandInt(100, 900) - static_cast<int>(a_Player->GetEquippedItem().m_Enchantments.GetLevel(cEnchantments::enchLure) * 100))
```
100 to 900 ticks is the correct timing of 5-45 seconds. However, the timer is only updated when the floater is in the water and the server side position was actually bobbing in and out of the water. This meant the timer took ~2-3x longer than it should.

With this change the floater position is always in the water and so the timer works as expected.
2018-04-27 16:33:45 +01:00
..
2018-04-27 16:33:45 +01:00
2018-04-11 12:17:30 +01:00
2018-02-20 17:08:46 +00:00
2018-01-03 17:41:16 +00:00
2018-02-20 17:08:46 +00:00
2017-06-03 18:49:02 +02:00
2018-01-03 17:41:16 +00:00
2018-04-11 07:46:11 +01:00
2017-08-24 11:19:40 +02:00
2017-05-11 13:34:36 +01:00
2018-01-03 17:41:16 +00:00
2017-08-25 13:43:18 +01:00
2017-08-25 13:43:18 +01:00
2014-07-19 11:09:39 -07:00
2016-02-05 23:50:18 +02:00
2017-09-19 10:34:08 +02:00
2016-02-05 23:50:18 +02:00
2016-02-05 23:50:18 +02:00
2015-07-15 14:05:36 -06:00
2017-07-12 12:30:43 +02:00
2018-01-03 17:41:16 +00:00
2018-01-03 17:41:16 +00:00
2016-02-05 23:50:18 +02:00
2017-08-28 14:36:23 +01:00
2017-05-21 12:19:06 +02:00
2017-06-29 18:58:48 +02:00
2017-08-24 11:19:40 +02:00
2016-04-14 12:40:46 +03:00
2017-05-21 12:19:06 +02:00
2017-12-21 16:01:24 +00:00
2018-01-05 14:32:30 +00:00
2018-01-03 17:41:16 +00:00
2018-01-03 17:41:16 +00:00
2018-01-03 17:41:16 +00:00
2018-01-03 17:41:16 +00:00
2017-08-03 15:34:19 +02:00
2016-02-05 23:50:18 +02:00
2016-02-05 23:50:18 +02:00
2018-04-11 12:17:30 +01:00
2018-04-11 12:17:30 +01:00
2016-02-05 23:50:18 +02:00
2016-02-05 23:50:18 +02:00
2017-05-21 12:19:06 +02:00
2017-06-13 21:35:30 +02:00
2017-08-25 13:43:18 +01:00
2017-08-25 13:43:18 +01:00
2016-02-05 23:50:18 +02:00
2016-02-05 23:50:18 +02:00
2017-08-30 15:00:06 +01:00
2017-08-24 11:19:40 +02:00
2016-02-05 23:50:18 +02:00
2017-08-03 15:34:19 +02:00
2018-04-08 00:20:53 +02:00
2017-08-25 13:43:18 +01:00
2017-08-28 14:36:23 +01:00
2016-02-05 23:50:18 +02:00
2016-02-05 23:50:18 +02:00
2018-04-11 12:17:30 +01:00
2017-12-26 21:25:57 +00:00
2017-08-24 11:19:40 +02:00