Репозитории ALT
S: | 0.3.160-alt2 |
5.1: | 0.3.146-alt0.M51.1 |
4.0: | 0.3.146-alt0.M40.1 |
Группа :: Игры/Головоломки
Пакет: numptyphysics
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: numptyphysics-gcc8-fix.patch
Скачать
Скачать
diff --git a/numptyphysics/Game.h b/numptyphysics/Game.h
index 2caa0f9..04c30d4 100644
--- a/numptyphysics/Game.h
+++ b/numptyphysics/Game.h
@@ -58,7 +58,7 @@ struct GameControl
virtual ~GameControl() {}
virtual bool save( const char *file=NULL ) =0;
virtual bool send() =0;
- virtual bool load( const char* file ) {};
+ virtual bool load( const char* file ) { return true; };
virtual void gotoLevel( int l, bool replay=false ) =0;
virtual void clickMode(int cm) =0;
Levels& levels() { return *m_levels; }
diff --git a/numptyphysics/Http.cpp b/numptyphysics/Http.cpp
index f5d259e..3ab8405 100644
--- a/numptyphysics/Http.cpp
+++ b/numptyphysics/Http.cpp
@@ -175,6 +175,7 @@ bool Http::post( const char* uri, const char*putname, const char* putfile,
fprintf(stderr,"http_get wobbly: %s\n",w.what());
}
}
+ return true;
}
diff --git a/numptyphysics/Levels.cpp b/numptyphysics/Levels.cpp
index 6b83738..5c38e28 100644
--- a/numptyphysics/Levels.cpp
+++ b/numptyphysics/Levels.cpp
@@ -115,6 +115,7 @@ bool Levels::addPath( const char* path )
bool Levels::addLevel( const string& file, int rank, int index )
{
addLevel( getCollection(MISC_COLLECTION), file, rank, index );
+ return true;
}
bool Levels::addLevel( Collection* collection,
@@ -248,6 +249,7 @@ int Levels::collectionFromLevel( int i, int *indexInCol )
}
}
}
+ return 0;
}
std::string Levels::collectionName( int i, bool pretty )
diff --git a/numptyphysics/Scene.cpp b/numptyphysics/Scene.cpp
index befcefc..118c0e0 100644
--- a/numptyphysics/Scene.cpp
+++ b/numptyphysics/Scene.cpp
@@ -616,6 +616,7 @@ bool Scene::activateStroke( Stroke *s )
{
activate(s);
m_recorder.activateStroke( m_strokes.indexOf(s) );
+ return true;
}
void Scene::getJointCandidates( Stroke* s, Path& pts )
diff --git a/numptyphysics/Ui.cpp b/numptyphysics/Ui.cpp
index d20ea39..bd4d13b 100644
--- a/numptyphysics/Ui.cpp
+++ b/numptyphysics/Ui.cpp
@@ -1087,6 +1087,7 @@ bool Dialog::close()
//fprintf(stderr,"close dialog\n");
m_closeRequested = true;
}
+ return true;
}
diff --git a/numptyphysics/Worker.cpp b/numptyphysics/Worker.cpp
index c35d893..f201095 100644
--- a/numptyphysics/Worker.cpp
+++ b/numptyphysics/Worker.cpp
@@ -64,4 +64,5 @@ int WorkerBase::startThread(void* wbase)
event.user.data1 = wbase;
event.user.data2 = 0;
SDL_PushEvent(&event);
+ return 0;
}