iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 94 forks source link

Starvation critical bug: starving troops do not die when troops are in training #551

Closed Hooodoor closed 6 years ago

Hooodoor commented 6 years ago

1. expected behaviour Starvation should go on as long as crop consumption is negative and there are still troops on the starving village.

2. incorrect behaviour When troops are training in the starving village, starvation stops and crop quantity never goes below zero. Troops cease to die. Starvation resumes when all troops are trained. See below gif.

myimage

3. the operating system & version debian 9.4 TravianZ 8.3.4

4. PHP version on the server PHP 7.0.27-0+deb9u1

5. MySQL / MariaDB version on the server mariadb Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

iopietro commented 6 years ago

Fixed in 8861a578e4513b24bf4469bdf9b25c47a746f459.