1
0

Pickups now have collection delay when vomited

Implements FS#394.
This commit is contained in:
Tiger Wang
2013-10-24 00:30:20 +01:00
parent cb9ccb36ac
commit 4d2c810c64
7 changed files with 19 additions and 13 deletions

View File

@@ -1183,7 +1183,7 @@ void cPlayer::TossItem(
double vX = 0, vY = 0, vZ = 0;
EulerToVector(-GetRotation(), GetPitch(), vZ, vX, vY);
vY = -vY * 2 + 1.f;
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY() + 1.6f, GetPosZ(), vX * 3, vY * 3, vZ * 3);
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY() + 1.6f, GetPosZ(), vX * 3, vY * 3, vZ * 3, true); // 'true' because created by player
}