From ab0296d1c1f3380a4e5d554170826a4f23dd0ce1 Mon Sep 17 00:00:00 2001
From: toasterbabe <rollerorbital@gmail.com>
Date: Tue, 23 Jan 2018 23:13:56 +0000
Subject: [PATCH] Added a failure animation if you don't get the emerald.
 https://cdn.discordapp.com/attachments/402861856219463681/405477752972509185/srb20004.gif

---
 src/y_inter.c | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/y_inter.c b/src/y_inter.c
index ebadfd324b..063268626a 100644
--- a/src/y_inter.c
+++ b/src/y_inter.c
@@ -399,13 +399,29 @@ void Y_IntermissionDrawer(void)
 				}
 				else
 				{
-					if (emeraldbounces < 3)
+					if (emeralds & (1 << em))
+					{
+						if (emeraldbounces < 3)
+						{
+							emeraldmomy += 1;
+							emeraldy += emeraldmomy;
+							if (emeraldy > 74)
+							{
+								S_StartSound(NULL, sfx_tink); // tink
+								emeraldbounces++;
+								emeraldmomy = -(emeraldmomy/2);
+								emeraldy = 74;
+							}
+						}
+					}
+					else
 					{
 						emeraldmomy += 1;
 						emeraldy += emeraldmomy;
-						if (emeraldy > 74)
+						emeraldx += intertic - 6;
+						if (emeraldbounces < 1 && emeraldy > 74)
 						{
-							S_StartSound(NULL, sfx_tink); // tink
+							S_StartSound(NULL, sfx_shldls); // nope
 							emeraldbounces++;
 							emeraldmomy = -(emeraldmomy/2);
 							emeraldy = 74;
-- 
GitLab