Hello

Another small fix, this one fixes the sign error in
drawWeaponReloadBar(), so that the reload bars for the 2nd turret will
be displayed below the 1st instead of over the HP bar.

- Thomas

-- 
GPG key ID 'BB66CCFD' available from hkp://subkeys.pgp.net or:
http://n.ethz.ch/student/trast/public-key.asc

Index: src/display3d.c
===================================================================
--- src/display3d.c	(Revision 455)
+++ src/display3d.c	(Arbeitskopie)
@@ -3325,8 +3325,8 @@
 		{
 			firingStage = (2*scrR) - 1;
 		}
-		pie_BoxFill(scrX - scrR-1, 6+scrY + 0 - (weapon_slot * 5), scrX - scrR +(2*scrR),    6+scrY+3 - (weapon_slot * 5), 0x00020202);
-		pie_BoxFill(scrX - scrR,   6+scrY + 1 - (weapon_slot * 5), scrX - scrR +firingStage, 6+scrY+2 - (weapon_slot * 5), 0x00ffffff);
+		pie_BoxFill(scrX - scrR-1, 6+scrY + 0 + (weapon_slot * 5), scrX - scrR +(2*scrR),    6+scrY+3 + (weapon_slot * 5), 0x00020202);
+		pie_BoxFill(scrX - scrR,   6+scrY + 1 + (weapon_slot * 5), scrX - scrR +firingStage, 6+scrY+2 + (weapon_slot * 5), 0x00ffffff);
 		return;
 	}
 	/* ******** ********/
@@ -3418,8 +3418,8 @@
 				firingStage = (2*scrR) - 1;
 			}
 			/* Power bars */
-			pie_BoxFill(scrX - scrR-1, 6+scrY + 0 - (weapon_slot * 5), scrX - scrR +(2*scrR),    6+scrY+3 - (weapon_slot * 5), 0x00020202);
-			pie_BoxFill(scrX - scrR,   6+scrY + 1 - (weapon_slot * 5), scrX - scrR +firingStage, 6+scrY+2 - (weapon_slot * 5), 0x00ffffff);
+			pie_BoxFill(scrX - scrR-1, 6+scrY + 0 + (weapon_slot * 5), scrX - scrR +(2*scrR),    6+scrY+3 + (weapon_slot * 5), 0x00020202);
+			pie_BoxFill(scrX - scrR,   6+scrY + 1 + (weapon_slot * 5), scrX - scrR +firingStage, 6+scrY+2 + (weapon_slot * 5), 0x00ffffff);
 		}
 	}
 }
@@ -3505,7 +3505,6 @@
 				health*=2;
 				pie_BoxFill(scrX-scrR - 1, scrY - 1, scrX + scrR + 1, scrY + 2, 0x00020202);
 				pie_BoxFill(scrX-scrR, scrY, scrX - scrR + health, scrY + 1, longPowerCol);
-
 				drawWeaponReloadBar((BASE_OBJECT *)psStruct, psStruct->asWeaps, 0);
 			}
 			else

Attachment: pgpmxMhNuiJpN.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to