From 0dd9283ba2b8da923c9e1ccab1c9591f0535e331 Mon Sep 17 00:00:00 2001
From: MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Tue, 15 Nov 2011 19:18:00 +0200
Subject: [PATCH] Match reading properly

---
 data/qcsrc/client/Main.qc | 4 ++--
 data/qcsrc/client/sbar.qc | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/data/qcsrc/client/Main.qc b/data/qcsrc/client/Main.qc
index 154ac152..bc4c745c 100644
--- a/data/qcsrc/client/Main.qc
+++ b/data/qcsrc/client/Main.qc
@@ -1061,8 +1061,8 @@ void Ent_Init()
 	armor_max = ReadCoord();
 	teamheal_max = ReadCoord();
 
-	g_power = ReadCoord();
-	g_power_reboot = ReadCoord();
+	g_power = ReadShort();
+	g_power_reboot = ReadShort();
 
 	if(!postinit)
 		PostInit();
diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc
index 61d7e8f2..40171815 100644
--- a/data/qcsrc/client/sbar.qc
+++ b/data/qcsrc/client/sbar.qc
@@ -3181,6 +3181,10 @@ void Sbar_Draw (void)
 			Sbar_PrintStomachboardItemPred(bottomleft - '-76 150 0', pred);
 		}
 
+//		if(getstati(STAT_HEALTH) > 0)
+//		if(getstati(STAT_ARMOR) < g_power)
+//			return;
+
 		// draw status, scores, timer, and ring
 		Sbar_Status();
 		Sbar_Score();
-- 
2.39.5