Squid: fix spammy rotation in enclosed spaces

this bug was caused by 2f3c77c68a0d9e0fdfb0eb69bd44344f4c8d028d. It looks unrelated to the commit title, so it may have been committed by mistake.
This commit is contained in:
Dylan K. Taylor 2019-10-22 22:50:35 +01:00
parent 3d840e969d
commit 32ad9d0c1a

View File

@ -82,7 +82,7 @@ class Squid extends WaterAnimal{
return false;
}
if(++$this->switchDirectionTicker === 100 or $this->isCollided){
if(++$this->switchDirectionTicker === 100){
$this->switchDirectionTicker = 0;
if(mt_rand(0, 100) < 50){
$this->swimDirection = null;