Merge branch 'SQC-15_online' of https://github.com/CegepSTH/SQCSim2023 into SQC-15_online
This commit is contained in:
commit
4e287702c3
@ -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…
x
Reference in New Issue
Block a user