Репозиторий Sisyphus
Последнее обновление: 20 сентября 2019 | Пакетов: 17455 | Посещений: 15132475
en ru br
Репозитории ALT
S:0.1-alt3_0.25.20060225
www.altlinux.org/Changes

Группа :: Игры/Прочее
Пакет: duel3

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

Патч: Duel3_20060225-gcc8-fix.patch
Скачать


diff --git a/Duel3_20060225_src/Source/AsteroidsGameMode.cpp b/Duel3_20060225_src/Source/AsteroidsGameMode.cpp
index bb4073e..e6ecb6f 100644
--- a/Duel3_20060225_src/Source/AsteroidsGameMode.cpp
+++ b/Duel3_20060225_src/Source/AsteroidsGameMode.cpp
@@ -75,6 +75,7 @@ CVector2 AsteroidsGameMode::getPlayerStartPos(int n)    //returns the start posi
 {
     if(n==0)    //first player
         return makeVector2(31,-20,true); 
+    return makeVector2(-31,-20,true);
 }  
 
 TMenuPage AsteroidsGameMode::createMenuPage(FONT **allFonts,TButtonAtts bAtts, int prevPage, Model *allModels, ShipArray *sa, Game *game)
diff --git a/Duel3_20060225_src/Source/CCamera.cpp b/Duel3_20060225_src/Source/CCamera.cpp
index 41db8c1..0441200 100644
--- a/Duel3_20060225_src/Source/CCamera.cpp
+++ b/Duel3_20060225_src/Source/CCamera.cpp
@@ -30,6 +30,7 @@ bool CCamera::setOrthoViewport(int w, int h)
 	
     glMatrixMode(GL_MODELVIEW);
     glLoadIdentity();
+    return true;
 }  
 
 
diff --git a/Duel3_20060225_src/Source/Game.cpp b/Duel3_20060225_src/Source/Game.cpp
index 6dd649f..a6d5913 100644
--- a/Duel3_20060225_src/Source/Game.cpp
+++ b/Duel3_20060225_src/Source/Game.cpp
@@ -965,6 +965,7 @@ char* Game::getWeaponName(int wepNum){
     if(wepNum>=0 && wepNum<iNumWeapons){
         return weapons[wepNum].retName();
     }
+    return NULL;
 }
 
 int Game::getNumWeapons(){
diff --git a/Duel3_20060225_src/Source/GameMode.cpp b/Duel3_20060225_src/Source/GameMode.cpp
index 674a6b7..194c474 100644
--- a/Duel3_20060225_src/Source/GameMode.cpp
+++ b/Duel3_20060225_src/Source/GameMode.cpp
@@ -94,6 +94,7 @@ int GameMode::getPlayerShipNum(int n)
     {
         return (*(menu->getResults()))[3].value;    
     }    
+    return -1;
 }    
 
 int GameMode::getWeaponsSet(int n)
diff --git a/Duel3_20060225_src/Source/MissileAvoid.cpp b/Duel3_20060225_src/Source/MissileAvoid.cpp
index 6487812..0412966 100644
--- a/Duel3_20060225_src/Source/MissileAvoid.cpp
+++ b/Duel3_20060225_src/Source/MissileAvoid.cpp
@@ -85,6 +85,7 @@ CVector2 MissileAvoid::getPlayerStartPos(int n)    //returns the start position
         }    
         
     }    
+    return pos;
 }
     
 int MissileAvoid::getPlayerShipNum(int n)
diff --git a/Duel3_20060225_src/Source/Model.cpp b/Duel3_20060225_src/Source/Model.cpp
index 31e598c..989d35d 100644
--- a/Duel3_20060225_src/Source/Model.cpp
+++ b/Duel3_20060225_src/Source/Model.cpp
@@ -290,6 +290,7 @@ bool Model::loadAllTextures(void)
         else
             materials[n].iTextureIndex=0;
     }
+    return true;
 }
 
 void Model::draw(bool wireframe)
diff --git a/Duel3_20060225_src/Source/ScoreKeeper.cpp b/Duel3_20060225_src/Source/ScoreKeeper.cpp
index 855adca..938a952 100644
--- a/Duel3_20060225_src/Source/ScoreKeeper.cpp
+++ b/Duel3_20060225_src/Source/ScoreKeeper.cpp
@@ -72,6 +72,7 @@ int ScoreKeeper::incMultiplier(int player)
 {
     if(player==0 || player==1)
         multiplier[player]+=multiplier_inc;
+    return 0;
 }
     
 float ScoreKeeper::getMultiplier(int player)
diff --git a/Duel3_20060225_src/Source/ShipArray.cpp b/Duel3_20060225_src/Source/ShipArray.cpp
index b25fdfb..8c3e382 100644
--- a/Duel3_20060225_src/Source/ShipArray.cpp
+++ b/Duel3_20060225_src/Source/ShipArray.cpp
@@ -20,6 +20,8 @@ TShipDef ShipArray::retShipDef(int n)
 {
     if(n>=0 && n<iNumDefs)
         return shipDef[n];
+    TShipDef t;
+    return t;
 }
 
 void ShipArray::init(void)
diff --git a/Duel3_20060225_src/Source/main.cpp b/Duel3_20060225_src/Source/main.cpp
index b02ae16..00a761e 100644
--- a/Duel3_20060225_src/Source/main.cpp
+++ b/Duel3_20060225_src/Source/main.cpp
@@ -880,6 +880,7 @@ int initAllegroGL(void)
     LOCK_VARIABLE(sec);
     LOCK_FUNCTION(go_sec);
 	install_int_ex(go_sec, BPS_TO_TIMER(1000)); //increments sec 1000 times a second
+    return 0;
 }
 
 void end_game(void)
diff --git a/Duel3_20060225_src/Source/particle.cpp b/Duel3_20060225_src/Source/particle.cpp
index 1bbe279..0eaba10 100644
--- a/Duel3_20060225_src/Source/particle.cpp
+++ b/Duel3_20060225_src/Source/particle.cpp
@@ -84,6 +84,7 @@ int Particle::move(void)
         pos+=vel;
     
     }
+    return 0;
 }
 
 void Particle::energyDown(void)
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin