butterflies are not attracted to underwater plants

shapetextures
Maikel de Vries 2015-12-20 10:35:26 +01:00
parent 76427c0b82
commit 9a9b7fe8be
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ private func GetAttraction(proplist coordinates)
continue;
if (plant->GetCon() < 30) // Too small
continue;
if (plant->GBackSemiSolid()) // Under water or covered with solid material
continue;
var width = plant->GetObjWidth();
var height = plant->GetObjHeight();
coordinates.x = plant->GetX() + Random(width) - width / 2;