Only drop one seed, not 3 (#710)
* Fix mouse getting grabbed outside window of the game * seedfix by changing spawnresources() & removing other branch pullrequest * revert sln change & remove comment
This commit is contained in:
@@ -187,7 +187,7 @@ void StemTile::spawnResources(Level *level, int x, int y, int z, int data, float
|
||||
Item *seed = NULL;
|
||||
if (fruit == Tile::pumpkin) seed = Item::seeds_pumpkin;
|
||||
if (fruit == Tile::melon) seed = Item::seeds_melon;
|
||||
for (int i = 0; i < 3; i++)
|
||||
if (seed != NULL)
|
||||
{
|
||||
popResource(level, x, y, z, shared_ptr<ItemInstance>(new ItemInstance(seed)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user