Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master games grimoire by Eric Sandall (48627ac92fc6b55d57574784f808c0094d8ab750)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master games grimoire by Eric Sandall (48627ac92fc6b55d57574784f808c0094d8ab750)
  • Date: Sat, 22 Mar 2008 03:15:30 -0500

GIT changes to master games grimoire by Eric Sandall
<sandalle AT sourcemage.org>:

games-arcade-2d/wormux/0001-Allow-compilation-with-gcc-3.4.patch |
428 ++++++++++
games-arcade-2d/wormux/0002-make-wormux-0.8beta4-compile-with-g-4.3.patch |
318 +++++++
games-arcade-2d/wormux/HISTORY |
9
games-arcade-2d/wormux/PRE_BUILD |
8
4 files changed, 761 insertions(+), 2 deletions(-)

New commits:
commit 48627ac92fc6b55d57574784f808c0094d8ab750
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

wormux: Apply patches to build with gcc 4.3.0

diff --git a/games-arcade-2d/wormux/0001-Allow-compilation-with-gcc-3.4.patch
b/games-arcade-2d/wormux/0001-Allow-compilation-with-gcc-3.4.patch
new file mode 100644
index 0000000..ecbdb10
--- /dev/null
+++ b/games-arcade-2d/wormux/0001-Allow-compilation-with-gcc-3.4.patch
@@ -0,0 +1,428 @@
+From dd5abf4962d7d62eac522f9f06414af4e83e5d2f Mon Sep 17 00:00:00 2001
+From: eddyp <eddyp@30ef787d-52ff-0310-b286-e08351bb7647>
+Date: Sat, 16 Feb 2008 00:05:29 +0000
+Subject: [PATCH] Allow compilation with gcc-3.4
+
+GCC 4.3 imposes a few changes on wormux code:
+- explicitly include <cstdlib>
+- explicit body where it might be ambiguous
+- const qualifiers are ignored when attached to
+ function return types since is not checked
+
+git-svn-id: svn+ssh://svn.gna.org/svn/wormux/trunk@4065
30ef787d-52ff-0310-b286-e08351bb7647
+---
+ src/game/config.cpp | 1 +
+ src/game/game.cpp | 2 +-
+ src/graphic/polygon.cpp | 4 ++--
+ src/graphic/polygon.h | 12 ++++++------
+ src/interface/mouse.cpp | 4 ++--
+ src/interface/mouse.h | 6 +++---
+ src/map/maps_list.h | 2 +-
+ src/network/network.cpp | 6 +++---
+ src/network/network.h | 12 ++++++------
+ src/network/network_client.cpp | 2 +-
+ src/network/network_client.h | 4 ++--
+ src/network/network_local.h | 4 ++--
+ src/network/network_server.cpp | 8 ++++----
+ src/network/network_server.h | 10 +++++-----
+ src/object/physics.h | 10 +++++-----
+ src/particles/particle.h | 2 +-
+ src/tool/vector2.h | 3 ++-
+ src/weapon/weapon.h | 2 +-
+ 18 files changed, 48 insertions(+), 46 deletions(-)
+
+diff --git a/src/game/config.cpp b/src/game/config.cpp
+index 507b487..37058f9 100644
+--- a/src/game/config.cpp
++++ b/src/game/config.cpp
+@@ -23,6 +23,7 @@
+
+ #include "game/config.h"
+
++#include <cstdlib>
+ #include <sstream>
+ #include <string>
+ #include <iostream>
+diff --git a/src/game/game.cpp b/src/game/game.cpp
+index 8e337d8..876b3b8 100644
+--- a/src/game/game.cpp
++++ b/src/game/game.cpp
+@@ -202,7 +202,7 @@ void Game::Init()
+ void Game::IgnorePendingInputEvents() const
+ {
+ SDL_Event event;
+- while(SDL_PollEvent(&event));
++ while(SDL_PollEvent(&event)) { ; }
+ }
+
+ void Game::RefreshInput()
+diff --git a/src/graphic/polygon.cpp b/src/graphic/polygon.cpp
+index 7241a9f..845f77d 100644
+--- a/src/graphic/polygon.cpp
++++ b/src/graphic/polygon.cpp
+@@ -116,12 +116,12 @@ void PolygonItem::SetAlignment(H_align h_a, V_align
v_a)
+ v_align = v_a;
+ }
+
+-const Point2d & PolygonItem::GetPosition() const
++Point2d & PolygonItem::GetPosition()
+ {
+ return position;
+ }
+
+-const Point2d & PolygonItem::GetTransformedPosition() const
++Point2d & PolygonItem::GetTransformedPosition()
+ {
+ return transformed_position;
+ }
+diff --git a/src/graphic/polygon.h b/src/graphic/polygon.h
+index e5da6f2..2936589 100644
+--- a/src/graphic/polygon.h
++++ b/src/graphic/polygon.h
+@@ -54,8 +54,8 @@ class PolygonBuffer {
+ class PolygonItem {
+
+ /* if you need that, implement it (correctly)*/
+- PolygonItem(const PolygonItem&);
+- PolygonItem operator=(const PolygonItem&);
++ PolygonItem( PolygonItem&);
++ PolygonItem operator=( PolygonItem&);
+ /*********************************************/
+
+ public:
+@@ -76,10 +76,10 @@ class PolygonItem {
+ virtual ~PolygonItem();
+ void SetPosition(const Point2d & pos);
+ void SetAlignment(H_align h_a = H_CENTERED, V_align v_a = V_CENTERED);
+- const H_align GetHAlign() const { return h_align; }
+- const V_align GetVAlign() const { return v_align; }
+- const Point2d & GetPosition() const;
+- const Point2d & GetTransformedPosition() const;
++ H_align GetHAlign() const { return h_align; }
++ V_align GetVAlign() const { return v_align; }
++ Point2d & GetPosition();
++ Point2d & GetTransformedPosition();
+ Point2i GetIntTransformedPosition() const;
+ virtual bool Contains(const Point2d & p) const;
+ void SetSprite(Sprite * sprite);
+diff --git a/src/interface/mouse.cpp b/src/interface/mouse.cpp
+index 9fcc865..290c382 100644
+--- a/src/interface/mouse.cpp
++++ b/src/interface/mouse.cpp
+@@ -252,7 +252,7 @@ Point2i Mouse::GetWorldPosition() const
+ return GetPosition() + Camera::GetInstance()->GetPosition();
+ }
+
+-const MouseCursor& Mouse::GetCursor(pointer_t pointer) const
++MouseCursor& Mouse::GetCursor(pointer_t pointer) const
+ {
+ ASSERT(pointer != POINTER_STANDARD);
+
+@@ -265,7 +265,7 @@ const MouseCursor& Mouse::GetCursor(pointer_t pointer)
const
+ return (*cursors.find(pointer)).second;
+ }
+
+-const Mouse::pointer_t Mouse::GetPointer() const
++Mouse::pointer_t Mouse::GetPointer() const
+ {
+ return current_pointer;
+ }
+diff --git a/src/interface/mouse.h b/src/interface/mouse.h
+index 2d75314..6bfcdfd 100644
+--- a/src/interface/mouse.h
++++ b/src/interface/mouse.h
+@@ -73,7 +73,7 @@ private:
+ void ActionRightClic(bool shift = false) const;
+ void ActionWheelDown(bool shift = false) const;
+ void ActionWheelUp(bool shift = false) const;
+- const MouseCursor& GetCursor(pointer_t pointer) const;
++ MouseCursor& GetCursor(pointer_t pointer) const;
+
+ public:
+ static Mouse * GetInstance();
+@@ -86,7 +86,7 @@ public:
+ void CenterPointer();
+
+ // Choose the pointer
+- const pointer_t GetPointer() const;
++ pointer_t GetPointer() const;
+ pointer_t SetPointer(pointer_t pointer);
+ void Draw() const;
+
+@@ -94,6 +94,6 @@ public:
+ void Show();
+ void Hide();
+
+- const visibility_t GetVisibility() const { return visible; };
++ visibility_t GetVisibility() const { return visible; };
+ };
+ #endif
+diff --git a/src/map/maps_list.h b/src/map/maps_list.h
+index b195590..a11ac4e 100644
+--- a/src/map/maps_list.h
++++ b/src/map/maps_list.h
+@@ -103,7 +103,7 @@ public:
+
+ uint GetNbBarrel() { LoadBasicInfo(); return nb_barrel; };
+ uint GetNbMine() { LoadBasicInfo(); return nb_mine; };
+- const Profile * const ResProfile() const { return res_profile; };
++ Profile * ResProfile() const { return res_profile; };
+
+ bool IsOpened() { LoadBasicInfo(); return is_opened; };
+ bool UseWater() { LoadBasicInfo(); return use_water; };
+diff --git a/src/network/network.cpp b/src/network/network.cpp
+index 89de178..9622f71 100644
+--- a/src/network/network.cpp
++++ b/src/network/network.cpp
+@@ -311,7 +311,7 @@ typedef int SOCKET;
+ # define closesocket(fd) close(fd)
+ #endif
+
+-const connection_state_t Network::GetError() const
++connection_state_t Network::GetError() const
+ {
+ #ifdef WIN32
+ int code = WSAGetLastError();
+@@ -337,7 +337,7 @@ const connection_state_t Network::GetError() const
+ #endif
+ }
+
+-const connection_state_t Network::CheckHost(const std::string &host, int
prt) const
++connection_state_t Network::CheckHost(const std::string &host, int prt)
const
+ {
+ MSG_DEBUG("network", "Checking connection to %s:%i", host.c_str(), prt);
+
+@@ -435,7 +435,7 @@ bool Network::IsConnected()
+ return (!GetInstance()->IsLocal() && !stop_thread);
+ }
+
+-const uint Network::GetPort() const
++uint Network::GetPort() const
+ {
+ Uint16 prt;
+ prt = SDLNet_Read16(&ip.port);
+diff --git a/src/network/network.h b/src/network/network.h
+index 4bfc49a..21bf5a4 100644
+--- a/src/network/network.h
++++ b/src/network/network.h
+@@ -77,7 +77,7 @@ private:
+ Network(const Network&);
+ const Network& operator=(const Network&);
+ friend class DistantComputer;
+- const connection_state_t GetError() const;
++ connection_state_t GetError() const;
+
+ static Network * singleton;
+ static bool sdlnet_initialized;
+@@ -127,10 +127,10 @@ public:
+ static void Disconnect();
+
+ static bool IsConnected();
+- virtual const bool IsLocal() const { return false ; }
+- virtual const bool IsServer() const { return false ; }
+- virtual const bool IsClient() const { return false ; }
+- const uint GetPort() const;
++ virtual bool IsLocal() const { return false ; }
++ virtual bool IsServer() const { return false ; }
++ virtual bool IsClient() const { return false ; }
++ uint GetPort() const;
+
+ // Action handling
+ void SendPacket(char* packet, int size) const;
+@@ -146,7 +146,7 @@ public:
+ static connection_state_t ServerStart(const std::string &port);
+
+ // Manage network state
+- const connection_state_t CheckHost(const std::string &host, int prt)
const;
++ connection_state_t CheckHost(const std::string &host, int prt) const;
+ void SetState(Network::network_state_t state);
+ Network::network_state_t GetState() const;
+ void SendNetworkState() const;
+diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
+index acb6046..d46e4a4 100644
+--- a/src/network/network_client.cpp
++++ b/src/network/network_client.cpp
+@@ -94,7 +94,7 @@ void NetworkClient::HandleAction(Action* a,
DistantComputer* sender)
+ }
+
+
//-----------------------------------------------------------------------------
+-const connection_state_t
++connection_state_t
+ NetworkClient::ClientConnect(const std::string &host, const std::string&
port)
+ {
+ Init();
+diff --git a/src/network/network_client.h b/src/network/network_client.h
+index a679b9a..82b607a 100644
+--- a/src/network/network_client.h
++++ b/src/network/network_client.h
+@@ -36,14 +36,14 @@ public:
+ ~NetworkClient();
+
+ //virtual const bool IsConnected() const { return true; }
+- virtual const bool IsClient() const { return true; }
++ virtual bool IsClient() const { return true; }
+
+ virtual void SendChatMessage(const std::string& txt);
+
+ std::list<DistantComputer*>::iterator
CloseConnection(std::list<DistantComputer*>::iterator);
+
+ // Client specific methods
+- const connection_state_t ClientConnect(const std::string &host,
++ connection_state_t ClientConnect(const std::string &host,
+ const std::string& port);
+ };
+
+diff --git a/src/network/network_local.h b/src/network/network_local.h
+index 981a8fa..8fd49ea 100644
+--- a/src/network/network_local.h
++++ b/src/network/network_local.h
+@@ -34,8 +34,8 @@ protected:
+ public:
+ ~NetworkLocal();
+
+- virtual const bool IsConnected() const { return false; }
+- virtual const bool IsLocal() const { return true; }
++ virtual bool IsConnected() const { return false; }
++ virtual bool IsLocal() const { return true; }
+
+ virtual void SendAction(Action* action);
+
+diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
+index 363c77e..d4f7273 100644
+--- a/src/network/network_server.cpp
++++ b/src/network/network_server.cpp
+@@ -178,12 +178,12 @@ void NetworkServer::SetMaxNumberOfPlayers(uint
_max_nb_players)
+ }
+ }
+
+-const uint NetworkServer::GetNbConnectedPlayers() const
++uint NetworkServer::GetNbConnectedPlayers() const
+ {
+ return cpu.size() + 1;
+ }
+
+-const uint NetworkServer::GetNbInitializedPlayers() const
++uint NetworkServer::GetNbInitializedPlayers() const
+ {
+ uint r = 0;
+
+@@ -197,7 +197,7 @@ const uint NetworkServer::GetNbInitializedPlayers() const
+ return r;
+ }
+
+-const uint NetworkServer::GetNbReadyPlayers() const
++uint NetworkServer::GetNbReadyPlayers() const
+ {
+ uint r = 0;
+
+@@ -211,7 +211,7 @@ const uint NetworkServer::GetNbReadyPlayers() const
+ return r;
+ }
+
+-const uint NetworkServer::GetNbCheckedPlayers() const
++uint NetworkServer::GetNbCheckedPlayers() const
+ {
+ uint r = 0;
+
+diff --git a/src/network/network_server.h b/src/network/network_server.h
+index 1369fc8..290b22a 100644
+--- a/src/network/network_server.h
++++ b/src/network/network_server.h
+@@ -39,7 +39,7 @@ public:
+ ~NetworkServer();
+
+ //virtual const bool IsConnected() const { return true; }
+- virtual const bool IsServer() const { return true; }
++ virtual bool IsServer() const { return true; }
+
+ virtual void SendChatMessage(const std::string& txt);
+
+@@ -50,10 +50,10 @@ public:
+ void RejectIncoming();
+ std::list<DistantComputer*>::iterator
CloseConnection(std::list<DistantComputer*>::iterator closed);
+ void SetMaxNumberOfPlayers(uint max_nb_players);
+- const uint GetNbConnectedPlayers() const;
+- const uint GetNbInitializedPlayers() const;
+- const uint GetNbReadyPlayers() const;
+- const uint GetNbCheckedPlayers() const;
++ uint GetNbConnectedPlayers() const;
++ uint GetNbInitializedPlayers() const;
++ uint GetNbReadyPlayers() const;
++ uint GetNbCheckedPlayers() const;
+ };
+
+
//-----------------------------------------------------------------------------
+diff --git a/src/object/physics.h b/src/object/physics.h
+index 0a8820f..88aa9df 100644
+--- a/src/object/physics.h
++++ b/src/object/physics.h
+@@ -83,19 +83,19 @@ public:
+ void SetPhysSize (double width, double height) { m_phys_width = width;
m_phys_height = height ; };
+
+ void SetMass (double mass) { m_mass = mass ; };
+- const double GetMass() const { return m_mass; }
++ double GetMass() const { return m_mass; }
+
+ void SetWindFactor (double wind_factor) { m_wind_factor = wind_factor; };
+- const double GetWindFactor () const { return m_wind_factor; }
++ double GetWindFactor () const { return m_wind_factor; }
+
+ void SetAirResistFactor (double factor) { m_air_resist_factor = factor; };
+- const double GetAirResistFactor () const{ return m_air_resist_factor; }
++ double GetAirResistFactor () const{ return m_air_resist_factor; }
+
+ void SetGravityFactor (double factor) { m_gravity_factor = factor; };
+- const double GetGravityFactor () const { return m_gravity_factor; }
++ double GetGravityFactor () const { return m_gravity_factor; }
+
+ void SetRebounding (bool rebounding) { m_rebounding = rebounding; }
+- const bool GetRebounding () const { return m_rebounding; }
++ bool GetRebounding () const { return m_rebounding; }
+
+ // Used to sync value across network
+ virtual void GetValueFromAction(Action *);
+diff --git a/src/particles/particle.h b/src/particles/particle.h
+index 3819ace..afa146c 100644
+--- a/src/particles/particle.h
++++ b/src/particles/particle.h
+@@ -85,7 +85,7 @@ class Particle : public PhysicalObj
+ void SetOnTop(bool b) { on_top = b; }
+ bool IsOnTop() const { return on_top; }
+ bool StillUseful() const;
+- const bool CheckOnEndTurn() const { return m_check_move_on_end_turn; }
++ bool CheckOnEndTurn() const { return m_check_move_on_end_turn; }
+ };
+
+ class ParticleEngine
+diff --git a/src/tool/vector2.h b/src/tool/vector2.h
+index da03e7f..f029b5a 100644
+--- a/src/tool/vector2.h
++++ b/src/tool/vector2.h
+@@ -385,9 +385,10 @@ template<class T> class Vector2
+ if( !IsZero( x ) )
+ if( !IsZero( y ) ){
+ double angle = atan(double(y)/double(x));
+- if( x < 0 )
++ if( x < 0 ){
+ if( y > 0 ) return angle + M_PI;
+ else return angle - M_PI;
++ }
+ return angle;
+ }
+ else
+diff --git a/src/weapon/weapon.h b/src/weapon/weapon.h
+index 0389e04..28162d6 100644
+--- a/src/weapon/weapon.h
++++ b/src/weapon/weapon.h
+@@ -299,7 +299,7 @@ public:
+ bool LoadXml(const xmlpp::Element * weapon);
+
+ // return the strength of the weapon
+- const double ReadStrength() const { return m_strength; };
++ double ReadStrength() const { return m_strength; };
+
+ // Data access
+ const std::string& GetName() const;
+--
+1.5.3.8
+
diff --git
a/games-arcade-2d/wormux/0002-make-wormux-0.8beta4-compile-with-g-4.3.patch
b/games-arcade-2d/wormux/0002-make-wormux-0.8beta4-compile-with-g-4.3.patch
new file mode 100644
index 0000000..8bbb21f
--- /dev/null
+++
b/games-arcade-2d/wormux/0002-make-wormux-0.8beta4-compile-with-g-4.3.patch
@@ -0,0 +1,318 @@
+From ff00d6ac70b989246e9f1e9f9cebf5523b9fc063 Mon Sep 17 00:00:00 2001
+From: =?utf-8?q?Eddy=20Petri=C8=99or?= <eddy.petrisor AT gmail.com>
+Date: Mon, 18 Feb 2008 00:31:25 +0200
+Subject: [PATCH] make wormux 0.8beta4 compile with g++-4.3
+
+This patch comes as an addition to the fixes that were applied
+in upstream trunk for the same purpose.
+---
+ src/graphic/video.cpp | 4 +---
+ src/gui/combo_box.cpp | 2 +-
+ src/gui/combo_box.h | 2 +-
+ src/gui/list_box.cpp | 2 +-
+ src/gui/list_box.h | 2 +-
+ src/interface/mouse_cursor.cpp | 2 +-
+ src/interface/mouse_cursor.h | 2 +-
+ src/map/maps_list.cpp | 4 +---
+ src/map/random_map.h | 6 +++---
+ src/map/sky.cpp | 1 +
+ src/menu/credits_menu.cpp | 4 +---
+ src/menu/map_selection_box.cpp | 2 +-
+ src/menu/pause_menu.cpp | 4 +---
+ src/menu/results_menu.cpp | 4 +---
+ src/network/distant_cpu.cpp | 4 +---
+ src/network/download.h | 1 +
+ src/object/objbox.cpp | 1 +
+ src/tool/text_handling.cpp | 4 ++--
+ src/weapon/grapple.cpp | 2 +-
+ src/weapon/weapon_launcher.cpp | 1 +
+ 20 files changed, 23 insertions(+), 31 deletions(-)
+
+diff --git a/src/graphic/video.cpp b/src/graphic/video.cpp
+index 4421eb2..bdd73c3 100644
+--- a/src/graphic/video.cpp
++++ b/src/graphic/video.cpp
+@@ -17,9 +17,7 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA
+
*****************************************************************************/
+
+-#ifdef _MSC_VER
+-# include <algorithm>
+-#endif
++#include <algorithm>
+ #include <iostream>
+ #include <SDL_image.h>
+ #include "game/config.h"
+diff --git a/src/gui/combo_box.cpp b/src/gui/combo_box.cpp
+index ce88ae5..e384498 100644
+--- a/src/gui/combo_box.cpp
++++ b/src/gui/combo_box.cpp
+@@ -174,7 +174,7 @@ void ComboBox::SetChoice
(std::vector<std::string>::size_type index)
+ NeedRedrawing();
+ }
+
+-const int ComboBox::GetIntValue() const
++int ComboBox::GetIntValue() const
+ {
+ int tmp = 0;
+ sscanf(GetValue().c_str(),"%d", &tmp);
+diff --git a/src/gui/combo_box.h b/src/gui/combo_box.h
+index 5f5cc46..9548a58 100644
+--- a/src/gui/combo_box.h
++++ b/src/gui/combo_box.h
+@@ -66,7 +66,7 @@ class ComboBox : public Widget
+ Widget* Click(const Point2i&, uint) const { return NULL; };
+ Widget* ClickUp(const Point2i &mousePosition, uint button);
+ const std::string GetValue() const { return m_choices[m_index].first; };
+- const int GetIntValue() const;
++ int GetIntValue() const;
+ void SetChoice(std::vector<std::string>::size_type index);
+ };
+
+diff --git a/src/gui/list_box.cpp b/src/gui/list_box.cpp
+index 8724f9a..af6e955 100644
+--- a/src/gui/list_box.cpp
++++ b/src/gui/list_box.cpp
+@@ -313,7 +313,7 @@ const std::string& ListBox::ReadValue () const
+ return m_items.at(selected_item)->GetValue();
+ }
+
+-const int ListBox::ReadIntValue() const
++int ListBox::ReadIntValue() const
+ {
+ int tmp = 0;
+ sscanf(ReadValue().c_str(),"%d", &tmp);
+diff --git a/src/gui/list_box.h b/src/gui/list_box.h
+index e15565c..72c90fc 100644
+--- a/src/gui/list_box.h
++++ b/src/gui/list_box.h
+@@ -106,7 +106,7 @@ public:
+ void RemoveSelected();
+ const std::string& ReadLabel() const;
+ const std::string& ReadValue() const;
+- const int ReadIntValue() const;
++ int ReadIntValue() const;
+ const std::string& ReadValue(int index) const;
+
+ uint Size() const { return m_items.size(); };
+diff --git a/src/interface/mouse_cursor.cpp b/src/interface/mouse_cursor.cpp
+index 3001409..6b1e1a6 100644
+--- a/src/interface/mouse_cursor.cpp
++++ b/src/interface/mouse_cursor.cpp
+@@ -30,7 +30,7 @@ MouseCursor::MouseCursor(Mouse::pointer_t _pointer_id,
+ clic_pos = _clic_pos;
+ }
+
+-const Mouse::pointer_t MouseCursor::GetPointerId() const
++Mouse::pointer_t MouseCursor::GetPointerId() const
+ {
+ return pointer_id;
+ }
+diff --git a/src/interface/mouse_cursor.h b/src/interface/mouse_cursor.h
+index e2bf3d2..e40cdd4 100644
+--- a/src/interface/mouse_cursor.h
++++ b/src/interface/mouse_cursor.h
+@@ -38,7 +38,7 @@ public:
+ MouseCursor(Mouse::pointer_t pointer_id,
+ std::string filename, Point2i clic_pos);
+
+- const Mouse::pointer_t GetPointerId() const;
++ Mouse::pointer_t GetPointerId() const;
+ const Surface& GetSurface() const;
+ const Point2i& GetClicPos() const;
+ };
+diff --git a/src/map/maps_list.cpp b/src/map/maps_list.cpp
+index 7413ac9..3266a19 100644
+--- a/src/map/maps_list.cpp
++++ b/src/map/maps_list.cpp
+@@ -30,9 +30,7 @@
+ #include "tool/random.h"
+ #include "tool/xml_document.h"
+ #include <iostream>
+-#ifdef _MSC_VER
+-# include <algorithm>
+-#endif
++#include <algorithm>
+
+ extern const uint MAX_WIND_OBJECTS;
+
+diff --git a/src/map/random_map.h b/src/map/random_map.h
+index fed5f28..187cc7a 100644
+--- a/src/map/random_map.h
++++ b/src/map/random_map.h
+@@ -88,13 +88,13 @@ class RandomMap {
+ RandomMap(Profile *profile, const int width, const int height);
+ void SetSize(const int width, const int height);
+ const Point2i GetSize() const { return Point2i(width, height); };
+- const int GetWidth() const { return width; };
+- const int GetHeight() const { return height; };
++ int GetWidth() const { return width; };
++ int GetHeight() const { return height; };
+ void AddElement(const Surface * object, const Point2i& position);
+ void DrawElement();
+ void SetBorderSize(const double border) { border_size = border; };
+ void SetBorderColor(const Color& color) { border_color = color; };
+- const bool IsOpen() const { return is_open; };
++ bool IsOpen() const { return is_open; };
+ void Generate(InfoMap::Island_type generator);
+ void GenerateIsland();
+ void GeneratePlatforms();
+diff --git a/src/map/sky.cpp b/src/map/sky.cpp
+index 9df0578..63b4ffe 100644
+--- a/src/map/sky.cpp
++++ b/src/map/sky.cpp
+@@ -19,6 +19,7 @@
+ * Sky: background of the map
+
*****************************************************************************/
+
++#include <climits>
+ #include "map/sky.h"
+ #include "map/camera.h"
+ #include "map/map.h"
+diff --git a/src/menu/credits_menu.cpp b/src/menu/credits_menu.cpp
+index 40ec542..1b39b76 100644
+--- a/src/menu/credits_menu.cpp
++++ b/src/menu/credits_menu.cpp
+@@ -23,9 +23,7 @@
+
//-----------------------------------------------------------------------------
+ #include <sstream>
+ #include <iostream>
+-#ifdef _MSC_VER
+-# include <algorithm> //std::transform
+-#endif
++#include <algorithm> //std::transform
+ #include "game/config.h"
+ #include "graphic/font.h"
+ #include "graphic/video.h"
+diff --git a/src/menu/map_selection_box.cpp b/src/menu/map_selection_box.cpp
+index 62d10e8..643b571 100644
+--- a/src/menu/map_selection_box.cpp
++++ b/src/menu/map_selection_box.cpp
+@@ -129,7 +129,7 @@ MapSelectionBox::MapSelectionBox(const Point2i &_size,
bool _display_only) :
+
+ // If network game skip random generated maps
+ if (Network::GetInstance()->IsServer() && i !=
MapsList::GetInstance()->lst.size()) {
+- for (; MapsList::GetInstance()->lst[i]->IsRandomGenerated(); i = (i +
1) % MapsList::GetInstance()->lst.size());
++ for (; MapsList::GetInstance()->lst[i]->IsRandomGenerated(); i = (i +
1) % MapsList::GetInstance()->lst.size()) { ; }
+ }
+ ChangeMap(i);
+ }
+diff --git a/src/menu/pause_menu.cpp b/src/menu/pause_menu.cpp
+index 13310f9..1d350ee 100644
+--- a/src/menu/pause_menu.cpp
++++ b/src/menu/pause_menu.cpp
+@@ -23,9 +23,7 @@
+
//-----------------------------------------------------------------------------
+ #include <sstream>
+ #include <iostream>
+-#ifdef _MSC_VER
+-# include <algorithm> //std::transform
+-#endif
++#include <algorithm> //std::transform
+ #include "game/config.h"
+ #include "graphic/font.h"
+ #include "graphic/video.h"
+diff --git a/src/menu/results_menu.cpp b/src/menu/results_menu.cpp
+index a690664..b907428 100644
+--- a/src/menu/results_menu.cpp
++++ b/src/menu/results_menu.cpp
+@@ -20,9 +20,7 @@
+
*****************************************************************************/
+
+ #include "menu/results_menu.h"
+-#ifdef _MSC_VER
+-# include <algorithm> //std::sort
+-#endif
++#include <algorithm> //std::sort
+
+ #include "character/character.h"
+ #include "character/damage_stats.h"
+diff --git a/src/network/distant_cpu.cpp b/src/network/distant_cpu.cpp
+index 3a77dd0..770f3c1 100644
+--- a/src/network/distant_cpu.cpp
++++ b/src/network/distant_cpu.cpp
+@@ -19,9 +19,7 @@
+ * Distant Computer handling
+
*****************************************************************************/
+
+-#ifdef _MSC_VER
+-# include <algorithm> //std::find
+-#endif
++#include <algorithm> //std::find
+ #include "network/distant_cpu.h"
+
//-----------------------------------------------------------------------------
+ #include <SDL_mutex.h>
+diff --git a/src/network/download.h b/src/network/download.h
+index a30b9f6..9133cd5 100644
+--- a/src/network/download.h
++++ b/src/network/download.h
+@@ -22,6 +22,7 @@
+ #ifndef DOWNLOAD_H
+ #define DOWNLOAD_H
+ #include <map>
++#include <string>
+ #include <curl/curl.h>
+
+ class Downloader
+diff --git a/src/object/objbox.cpp b/src/object/objbox.cpp
+index 9b61667..f9f10da 100644
+--- a/src/object/objbox.cpp
++++ b/src/object/objbox.cpp
+@@ -24,6 +24,7 @@
+ #include "object/bonus_box.h"
+ #include <sstream>
+ #include <iostream>
++#include <typeinfo>
+ #include "game/game_mode.h"
+ #include "game/game.h"
+ #include "game/time.h"
+diff --git a/src/tool/text_handling.cpp b/src/tool/text_handling.cpp
+index 51a06a6..5682e9f 100644
+--- a/src/tool/text_handling.cpp
++++ b/src/tool/text_handling.cpp
+@@ -26,7 +26,7 @@ bool MoveCursorLeft(const std::string& text,
std::string::size_type& pos)
+ {
+ if (pos != 0)
+ {
+- while ((text[--pos] & 0xc0) == 0x80);
++ while ((text[--pos] & 0xc0) == 0x80) { ; }
+
+ return true;
+ }
+@@ -37,7 +37,7 @@ bool MoveCursorRight(const std::string& text,
std::string::size_type& pos)
+ {
+ if (pos < text.size())
+ {
+- while ((text[++pos] & 0xc0) == 0x80);
++ while ((text[++pos] & 0xc0) == 0x80) { ; }
+
+ return true;
+ }
+diff --git a/src/weapon/grapple.cpp b/src/weapon/grapple.cpp
+index 2fd444f..659a50b 100644
+--- a/src/weapon/grapple.cpp
++++ b/src/weapon/grapple.cpp
+@@ -345,7 +345,7 @@ void Grapple::NotifyMove(bool collision)
+ return;
+
+ // While there is nodes to break, we break !
+- while (TryBreakNode(currentSense));
++ while (TryBreakNode(currentSense)) { ; }
+ }
+
+ void Grapple::Refresh()
+diff --git a/src/weapon/weapon_launcher.cpp b/src/weapon/weapon_launcher.cpp
+index a68c909..1b7e549 100644
+--- a/src/weapon/weapon_launcher.cpp
++++ b/src/weapon/weapon_launcher.cpp
+@@ -23,6 +23,7 @@
+ #include "weapon/weapon_cfg.h"
+
+ #include <sstream>
++#include <typeinfo>
+
+ #include "weapon/explosion.h"
+ #include "character/character.h"
+--
+1.5.3.8
+
diff --git a/games-arcade-2d/wormux/HISTORY b/games-arcade-2d/wormux/HISTORY
index 675c26e..06a51b6 100644
--- a/games-arcade-2d/wormux/HISTORY
+++ b/games-arcade-2d/wormux/HISTORY
@@ -1,3 +1,11 @@
+2008-03-22 Eric Sandall <sandalle AT sourcemage.org>
+ * PRE_BUILD: Apply 0001-Allow-compilation-with-gcc-3.4.patch and
+ 0002-make-wormux-0.8beta4-compile-with-g-4.3.patch
+ * 0001-Allow-compilation-with-gcc-3.4.patch,
+ 0002-make-wormux-0.8beta4-compile-with-g-4.3.patch: Added patches
+ to compile with gcc 4.3.0
+ From
http://patches.ubuntu.com/by-release/debian/w/wormux/wormux_0.8beta4-2.patch
+
2007-12-27 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* DETAILS: updated spell to 0.8beta4

@@ -74,3 +82,4 @@

2004-05-24 Clément MATHIEU <cykl AT mAdchAt.org>
* HISTORY: Added
+
diff --git a/games-arcade-2d/wormux/PRE_BUILD
b/games-arcade-2d/wormux/PRE_BUILD
index 2da8827..1e88944 100755
--- a/games-arcade-2d/wormux/PRE_BUILD
+++ b/games-arcade-2d/wormux/PRE_BUILD
@@ -1,7 +1,11 @@
-default_pre_build &&
-cd $SOURCE_DIRECTORY &&
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+
if [[ "$WORMUX_SVN" == "y" ]]
then
touch config.rpath &&
NOCONFIGURE=1 ./autogen.sh
+else
+ patch -p1 < $SCRIPT_DIRECTORY/0001-Allow-compilation-with-gcc-3.4.patch &&
+ patch -p1 <
$SCRIPT_DIRECTORY/0002-make-wormux-0.8beta4-compile-with-g-4.3.patch
fi



  • [SM-Commit] GIT changes to master games grimoire by Eric Sandall (48627ac92fc6b55d57574784f808c0094d8ab750), Eric Sandall, 03/22/2008

Archive powered by MHonArc 2.6.24.

Top of Page