OOPS I DID IT AGAIN. I PLAYED WITH THE CODE, GOT LOST IN THE MORT.
This commit is contained in:
parent
b7b6a8cc7b
commit
e9e2a56be6
@ -1315,11 +1315,11 @@ void Engine::Render(float elapsedTime) {
|
||||
InstantDamage();
|
||||
}
|
||||
static bool died = false;
|
||||
if ((m_player.GetPosition().y < 1.7f || m_player.AmIDead()) && !died) {
|
||||
if ((m_player.GetPosition().y < -1.7f || m_player.AmIDead()) && !died) {
|
||||
m_audio.Create3DAudioObj(m_scream, AUDIO_PATH "scream.wav", m_player.GetPOV(), m_player.GetVelocity(), false, 1.f);
|
||||
died = true;
|
||||
}
|
||||
if (m_player.GetPosition().y < 15.f || died) {
|
||||
if (m_player.GetPosition().y < -15.f || died) {
|
||||
died = false;
|
||||
std::string user = m_player.m_username.append(" (Dead)");
|
||||
m_player = Player(Vector3f(.5, CHUNK_SIZE_Y + 1.7f, .5), 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user