Fish now actualy jumps to the player instead of a few block bellow them.

master
STRWarrior 2013-12-20 18:35:13 +01:00
parent af98fc6170
commit 61120686c6
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public:
Drops.Add(cItem(E_ITEM_RAW_FISH)); Drops.Add(cItem(E_ITEM_RAW_FISH));
Vector3d FloaterPos(Callbacks.GetPos()); Vector3d FloaterPos(Callbacks.GetPos());
Vector3d FlyDirection(a_Player->GetPosition() - FloaterPos); Vector3d FlyDirection(a_Player->GetPosition() - FloaterPos);
a_World->SpawnItemPickups(Drops, FloaterPos.x, FloaterPos.y, FloaterPos.z, FlyDirection.x, FlyDirection.y, FlyDirection.z); a_World->SpawnItemPickups(Drops, FloaterPos.x, FloaterPos.y, FloaterPos.z, FlyDirection.x, FlyDirection.Length() / (FlyDirection.y * 2), FlyDirection.z);
// TODO: More types of pickups. // TODO: More types of pickups.
} }
} }