Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038635
en ru br
Репозитории ALT
S:6.6-alt1
5.1: 4.3-alt1
4.1: 3.2-alt0.M41.2
4.0: 2.7-alt1
3.0: 1.1.0-alt2
www.altlinux.org/Changes

Другие репозитории

Группа :: Игры/Аркады
Пакет: atanks

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: atanks-gcc34-fix.patch
Скачать


diff -Nur atanks.orig/src/player.cc atanks/src/player.cc
--- atanks.orig/src/player.cc	2004-02-05 02:05:14 +0300
+++ atanks/src/player.cc	2005-01-17 17:26:22 +0300
@@ -1009,12 +1009,12 @@
 		if (weapNum >= RIOT_CHARGE && weapNum <= RIOT_BLAST) {
 			// add points only within range and above ctank
 			if (	(cy > ctank->y - (radius / 2)) ||
-				(abs (ctank->x - cx) > radius))
+				(abs ((int)ctank->x - cx) > radius))
 				continue;
 		} else if (weapNum >= SML_ROLLER && weapNum <= DTH_ROLLER) {
 			// Only aim rollers above other tanks
 			if (cy > tankY + TANKHEIGHT &&
-				abs (ctank->x - cx) > radius)
+				abs ((int)ctank->x - cx) > radius)
 				continue;
 		} else if (weapNum >= SML_LAZER && weapNum <= LRG_LAZER) {
 			// Lazer can only be aimed above horizontal
@@ -1085,7 +1085,7 @@
 			if (itemNum  >= ITEM_VENGEANCE && itemNum <= ITEM_FATAL_FURY) {
 				// add sqrt distances for each tank * potential damage
 				long int totalEffectiveDamage = calcTotalEffectiveDamage (itemNum);
-				_targetMatrix[(int)ctank->x] += sqrt (abs (ctank->x - ltank->x)) * totalEffectiveDamage;
+				_targetMatrix[(int)ctank->x] += sqrt (abs ((int)ctank->x - (int)ltank->x)) * totalEffectiveDamage;
 
 			}
 		}
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin