YYYAAAAAAARRRGGHH?
This commit is contained in:
parent
ca1ab7301d
commit
f564e37544
@ -1443,14 +1443,15 @@ void Engine::Render(float elapsedTime) {
|
||||
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, m_sfxvolume);
|
||||
died = true;
|
||||
}
|
||||
if (m_player.GetPosition().y < -21.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);
|
||||
m_player.m_username = user;
|
||||
m_player.InflictDamage(-m_player.GetHP());
|
||||
}
|
||||
/*if (m_player.GetPosition().y < -21.f || died) {
|
||||
died = false;
|
||||
|
||||
}*/
|
||||
|
||||
m_time += elapsedTime;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user