Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master games grimoire by Andra?? Levstik (4d51ae129f32b7cf569812551309278d59a7cd72)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Andra?? Levstik <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master games grimoire by Andra?? Levstik (4d51ae129f32b7cf569812551309278d59a7cd72)
  • Date: Fri, 15 Dec 2006 15:49:55 -0600

GIT changes to master games grimoire by Andra?? Levstik <ruskie AT mages.ath.cx>:

ChangeLog |
4
games-arcade-2d/hedgewars/BUILD |
5
games-arcade-2d/hedgewars/DEPENDS |
8
games-arcade-2d/hedgewars/DETAILS |
17
games-arcade-2d/hedgewars/HISTORY |
10
games-arcade-2d/hedgewars/INSTALL |
1
games-arcade-2d/hedgewars/PRE_BUILD |
8
games-strategy-rts/bos/DETAILS |
1
games-strategy-rts/bos/HISTORY |
3
games-strategy-rts/bos/bos |
2
games-strategy-rts/netpanzer/DETAILS |
2
games-strategy-rts/netpanzer/HISTORY |
7
games-strategy-rts/netpanzer/PRE_BUILD |
6
games-strategy-rts/netpanzer/patches/netpanzer-0.8-gcc41.patch |
36 +
games-strategy-rts/netpanzer/patches/netpanzer-0.8-min-size-check.patch |
33 +
games-strategy-rts/netpanzer/patches/netpanzer-0.8-robust.patch |
205 ++++++++++
games-strategy-tbs/hedgewars/BUILD |
5
games-strategy-tbs/hedgewars/DEPENDS |
8
games-strategy-tbs/hedgewars/DETAILS |
17
games-strategy-tbs/hedgewars/HISTORY |
10
games-strategy-tbs/hedgewars/INSTALL |
1
games-strategy-tbs/hedgewars/PRE_BUILD |
8
22 files changed, 346 insertions(+), 51 deletions(-)

New commits:
commit 8f252a1c37edda827bbee4850f0949feffb93e14
Author: Andra?? Levstik <ruskie AT mages.ath.cx>
Commit: Andra?? Levstik <ruskie AT mages.ath.cx>

hedgewars: moved to arcade-2d to be togheter with wormux

commit 045b4326681993d0c367879c96eeeb18fc8bba83
Author: Andra?? Levstik <ruskie AT mages.ath.cx>
Commit: Andra?? Levstik <ruskie AT mages.ath.cx>

netpanzer: added patches to fix building on gcc41 and other minor problems

commit bd7665f34084e94b34d70937d488bad7d18530b8
Author: Andra?? Levstik <ruskie AT mages.ath.cx>
Commit: Andra?? Levstik <ruskie AT mages.ath.cx>

bos: minor fixup in the launcher script

diff --git a/ChangeLog b/ChangeLog
index 831dc78..01ebcae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-15 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * games-strategy-tbs/hedgewars: moved to games-arcade-2d/hedgewars
+ where wormux already is
+
2006-12-05 David Brown <dmlb2000 AT gmail.com>
* FUNCTIONS: games make proper binary fixed variable problems

diff --git a/games-arcade-2d/hedgewars/BUILD b/games-arcade-2d/hedgewars/BUILD
new file mode 100755
index 0000000..ec00117
--- /dev/null
+++ b/games-arcade-2d/hedgewars/BUILD
@@ -0,0 +1,5 @@
+cmake -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="${INSTALL_ROOT}/usr" \
+ -DQT_QMAKE_EXECUTABLE=$TRACK_ROOT/usr/bin/qt4/qmake \
+ -DDATA_INSTALL_DIR="$INSTALL_ROOT/usr/share/games" &&
+make
diff --git a/games-arcade-2d/hedgewars/DEPENDS
b/games-arcade-2d/hedgewars/DEPENDS
new file mode 100755
index 0000000..978e886
--- /dev/null
+++ b/games-arcade-2d/hedgewars/DEPENDS
@@ -0,0 +1,8 @@
+depends cmake &&
+depends fpc &&
+depends qt4 &&
+depends sdl &&
+depends sdl_image &&
+depends sdl_mixer &&
+depends sdl_net &&
+depends sdl_ttf
diff --git a/games-arcade-2d/hedgewars/DETAILS
b/games-arcade-2d/hedgewars/DETAILS
new file mode 100755
index 0000000..1cc4b25
--- /dev/null
+++ b/games-arcade-2d/hedgewars/DETAILS
@@ -0,0 +1,17 @@
+ SPELL=hedgewars
+ VERSION=0.8.1
+ SOURCE=$SPELL-src-$VERSION.tar.bz2
+ SOURCE_URL[0]=http://$SPELL.org/download/$SOURCE
+
SOURCE_HASH=sha512:42ab3f31a2a307499b0afc99cdd670587acddd1877cc7a4a7517d019bd12160970f6500fac8e2f377421b14677459345308f31150c9c3526a335b11c0a3e00af
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/$SPELL-$VERSION
+ WEB_SITE=http://hedgewars.org/
+ LICENSE[0]=GPL
+ ENTERED=20061125
+ SHORT="Free Worms-like turn based strategy game"
+cat << EOF
+Hedgewars, it's a Blast! This is the funniest and most addictive game you'll
+ever play - hilarious fun that you can enjoy anywhere, anytime. Hedgewars is
+a turn based strategy game but the real buzz is from watching the devastation
+caused by those pesky hedgehogs with those fantastic weapons - sneaky little
+blighters with a bad attitude!
+EOF
diff --git a/games-arcade-2d/hedgewars/HISTORY
b/games-arcade-2d/hedgewars/HISTORY
new file mode 100644
index 0000000..8345b2f
--- /dev/null
+++ b/games-arcade-2d/hedgewars/HISTORY
@@ -0,0 +1,10 @@
+2006-11-30 Eric Sandall <eric AT sandall.us>
+ * PRE_BUILD: Properly fix install patch of binaries to /usr/games
+ (prior fix did not install hedgewars nor hwengine into /usr/games)
+
+2006-11-25 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * BUILD: added qt4 path
+ * INSTALL: fix install path
+
+2006-11-25 Pol Vinogradov <vin.public AT gmail.com>
+ * DETAILS, DEPENDS, BUILD, INSTALL, PRE_BUILD: created spell
diff --git a/games-arcade-2d/hedgewars/INSTALL
b/games-arcade-2d/hedgewars/INSTALL
new file mode 100755
index 0000000..e6fe4f7
--- /dev/null
+++ b/games-arcade-2d/hedgewars/INSTALL
@@ -0,0 +1 @@
+make install
diff --git a/games-arcade-2d/hedgewars/PRE_BUILD
b/games-arcade-2d/hedgewars/PRE_BUILD
new file mode 100755
index 0000000..1200cf0
--- /dev/null
+++ b/games-arcade-2d/hedgewars/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build &&
+cd ${SOURCE_DIRECTORY} &&
+mv bin games &&
+sedit 's:bin:games:g' CMakeLists.txt &&
+sedit 's:bin:games:' hedgewars/CMakeLists.txt &&
+sedit 's:("bin"):("games"):' QTfrontend/main.cpp.in &&
+sedit 's:("bin"):("games"):' QTfrontend/main.cpp &&
+sedit 's:DESTINATION bin:DESTINATION games:' QTfrontend/CMakeLists.txt
diff --git a/games-strategy-rts/bos/DETAILS b/games-strategy-rts/bos/DETAILS
index 1b62ec7..a30b0fc 100755
--- a/games-strategy-rts/bos/DETAILS
+++ b/games-strategy-rts/bos/DETAILS
@@ -5,6 +5,7 @@ SOURCE_DIRECTORY=${BUILD_DIRECTORY}/data
SOURCE_URL[0]=http://bos.seul.org/files/$SOURCE
WEB_SITE=http://bos.seul.org
ENTERED=20040719
+ PATCHLEVEL=1

SOURCE_HASH=sha512:076b3c4493c5261e5fe5616e1d1bdd7db28784562d85d9806223a2a130773cd2e98a663c5c9b79520d5fbe827066b92cd5e1c2fc4af913ec7a17373206921927
LICENSE[0]=GPL
SHORT='A game for the stratagus engine'
diff --git a/games-strategy-rts/bos/HISTORY b/games-strategy-rts/bos/HISTORY
index 1c9b5f9..fb61d80 100644
--- a/games-strategy-rts/bos/HISTORY
+++ b/games-strategy-rts/bos/HISTORY
@@ -1,3 +1,6 @@
+2006-12-15 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * bos: minor modification of the path
+
2006-12-11 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
* DETAILS: version update
* INSTALL: minor fixup
diff --git a/games-strategy-rts/bos/bos b/games-strategy-rts/bos/bos
index 785aff0..8b06934 100755
--- a/games-strategy-rts/bos/bos
+++ b/games-strategy-rts/bos/bos
@@ -1,3 +1,3 @@
#!/bin/bash

-stratagus -d /usr/share/games/stratagus/bos/data
+stratagus -d /usr/share/games/stratagus/bos
diff --git a/games-strategy-rts/netpanzer/DETAILS
b/games-strategy-rts/netpanzer/DETAILS
index d2f5ad6..c816717 100755
--- a/games-strategy-rts/netpanzer/DETAILS
+++ b/games-strategy-rts/netpanzer/DETAILS
@@ -5,7 +5,7 @@
SOURCE_URL[0]=http://download.berlios.de/netpanzer/$SOURCE
WEB_SITE=http://netpanzer.berlios.de/
ENTERED=20050209
- UPDATED=20050209
+ PATCHLEVEL=1

SOURCE_HASH=sha512:a9c83557ca831aea976c6dae315dbdb3ad92cef9f92969be2e34c654d0d27333efd02254443aee7f599c6bf9571880083f78ded76fac531a22e16f1ee622956e
LICENSE[0]=GPL
SHORT="netPanzer is an online multiplayer tactical warfare game
designed for fast action combat"
diff --git a/games-strategy-rts/netpanzer/HISTORY
b/games-strategy-rts/netpanzer/HISTORY
index e7d57c0..5e1e897 100644
--- a/games-strategy-rts/netpanzer/HISTORY
+++ b/games-strategy-rts/netpanzer/HISTORY
@@ -1,3 +1,10 @@
+2006-12-15 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * patches/netpanzer-0.8-gcc41.patch: gcc fixes patch from gentoo
+ * patches/netpanzer-0.8-min-size-check.patch: anti-hang up patch
+ * patches/netpanzer-0.8-robust.patch: upstream sanity checks
+ * DETAILS: patchlevel++
+ * PRE_BUILD: added to apply patches
+
2006-09-21 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
* DETAILS: [automated] Removed BUILD_API=2.

diff --git a/games-strategy-rts/netpanzer/PRE_BUILD
b/games-strategy-rts/netpanzer/PRE_BUILD
new file mode 100755
index 0000000..389751a
--- /dev/null
+++ b/games-strategy-rts/netpanzer/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+patch -p0 < $SPELL_DIRECTORY/patches/netpanzer-0.8-gcc41.patch &&
+patch -p0 < $SPELL_DIRECTORY/patches/netpanzer-0.8-min-size-check.patch &&
+patch -p0 < $SPELL_DIRECTORY/patches/netpanzer-0.8-robust.patch
+
diff --git a/games-strategy-rts/netpanzer/patches/netpanzer-0.8-gcc41.patch
b/games-strategy-rts/netpanzer/patches/netpanzer-0.8-gcc41.patch
new file mode 100644
index 0000000..f81008c
--- /dev/null
+++ b/games-strategy-rts/netpanzer/patches/netpanzer-0.8-gcc41.patch
@@ -0,0 +1,36 @@
+--- src/Lib/Network/Address.hpp
++++ src/Lib/Network/Address.hpp
+@@ -34,7 +34,7 @@
+ /** resolves a hostname or IP-Number together with a port and returns a
+ * new Address object.
+ */
+- static Address Address::resolve(const std::string& name, uint16_t port);
++ static Address resolve(const std::string& name, uint16_t port);
+
+ /** returns the ip address of this Address as string */
+ std::string getIP() const;
+
+--- src/NetPanzer/Classes/PlayerState.hpp
++++ src/NetPanzer/Classes/PlayerState.hpp
+@@ -81,8 +81,8 @@
+ public:
+ PlayerUnitConfig unit_config;
+
+- PlayerState::PlayerState();
+- PlayerState::PlayerState(const PlayerState& other);
++ PlayerState();
++ PlayerState(const PlayerState& other);
+
+ void operator= (const PlayerState& other);
+
+--- src/NetPanzer/Interfaces/Console.cpp
++++ src/NetPanzer/Interfaces/Console.cpp
+@@ -46,7 +46,7 @@
+ setp(buf, buf+sizeof(buf));
+ }
+
+- FileStampStreamBuf::~FileStampStreamBuf()
++ ~FileStampStreamBuf()
+ {
+ sync();
+ if(file)
diff --git
a/games-strategy-rts/netpanzer/patches/netpanzer-0.8-min-size-check.patch
b/games-strategy-rts/netpanzer/patches/netpanzer-0.8-min-size-check.patch
new file mode 100644
index 0000000..dc97ffc
--- /dev/null
+++ b/games-strategy-rts/netpanzer/patches/netpanzer-0.8-min-size-check.patch
@@ -0,0 +1,33 @@
+The size needs to be at least 2 or the code gets hung up.
+
+http://bugs.gentoo.org/98922
+
+--- src/NetPanzer/Network/ServerSocket.cpp
++++ src/NetPanzer/Network/ServerSocket.cpp
+@@ -169,7 +169,7 @@
+
+ size = htol16(*((int16_t*) tempbuffer));
+
+- if ( (size < 0) || (size > _MAX_NET_PACKET_SIZE) ) {
++ if ( (size < 2) || (size > _MAX_NET_PACKET_SIZE) ) {
+ LOG( ("OnReadStreamServer : Invalid Packet Size %d", size)
);
+ recvoffset = 0;
+ client->headerincomplete = false;
+@@ -224,7 +224,7 @@
+
+ size = htol16(*((int16_t*) tempbuffer));
+
+- if ( (size < 0) || (size > _MAX_NET_PACKET_SIZE) ) {
++ if ( (size < 2) || (size > _MAX_NET_PACKET_SIZE) ) {
+ LOG( ("OnReadStreamServer : Invalid Packet Size %d",
size) );
+ recvoffset = 0;
+ client->messageincomplete = false;
+@@ -266,7 +266,7 @@
+ } else if (recvsize >= 2) {
+ size = htol16(*((int16_t*) (recvbuffer + recvoffset)));
+
+- if( (size < 0) || (size > _MAX_NET_PACKET_SIZE) ) {
++ if( (size < 2) || (size > _MAX_NET_PACKET_SIZE) ) {
+ LOG( ("OnReadStreamServer : Invalid Packet Size %d",
size) );
+ recvoffset = 0;
+ client->tempoffset = 0;
diff --git a/games-strategy-rts/netpanzer/patches/netpanzer-0.8-robust.patch
b/games-strategy-rts/netpanzer/patches/netpanzer-0.8-robust.patch
new file mode 100644
index 0000000..d0e138e
--- /dev/null
+++ b/games-strategy-rts/netpanzer/patches/netpanzer-0.8-robust.patch
@@ -0,0 +1,205 @@
+A few more sanity checks from upstream svn.
+
+Index: src/NetPanzer/Interfaces/ChatInterface.cpp
+===================================================================
+--- src/NetPanzer/Interfaces/ChatInterface.cpp (revision 928)
++++ src/NetPanzer/Interfaces/ChatInterface.cpp (revision 929)
+@@ -39,9 +39,16 @@
+ ChatMesg chat_mesg;
+ const ChatMesgRequest* chat_request = (const ChatMesgRequest*) message;
+
++ if(chat_request->getSourcePlayerIndex() >=
PlayerInterface::getMaxPlayers())
++ {
++ LOGGER.warning("Invalid chatMessageRequest");
++ return;
++ }
++
+ chat_mesg.setSourcePlayerIndex(chat_request->getSourcePlayerIndex());
+ chat_mesg.message_scope = chat_request->message_scope;
+- strcpy( chat_mesg.message_text, chat_request->message_text );
++ snprintf(chat_mesg.message_text, sizeof(chat_mesg.message_text), "%s",
++ chat_request->message_text);
+
+ if( chat_request->message_scope == _chat_mesg_scope_all ) {
+ SERVER->sendMessage(&chat_mesg, sizeof(ChatMesg));
+@@ -126,6 +133,11 @@
+ unsigned short local_player_index;
+ const ChatMesg *chat_mesg = (const ChatMesg*) message;
+
++ if(chat_mesg->getSourcePlayerIndex() >=
PlayerInterface::getMaxPlayers()) {
++ LOGGER.warning("malformed chatmessage packet.");
++ return;
++ }
++
+ if( chat_mesg->message_scope == _chat_mesg_scope_server ) {
+ ConsoleInterface::postMessage("Server: %s", chat_mesg->message_text
);
+ return;
+Index: src/NetPanzer/Interfaces/GameManager.cpp
+===================================================================
+--- src/NetPanzer/Interfaces/GameManager.cpp (revision 928)
++++ src/NetPanzer/Interfaces/GameManager.cpp (revision 929)
+@@ -411,6 +411,11 @@
+ = (const SystemConnectAlert*) message;
+ PlayerState *player_state = 0;
+
++ if(connect_alert->getPlayerID() >= PlayerInterface::getMaxPlayers()) {
++ LOGGER.warning("Malformed connect alert message.");
++ return;
++ }
++
+ player_state = PlayerInterface::getPlayerState(
connect_alert->getPlayerID() );
+
+ switch (connect_alert->alert_enum) {
+@@ -471,6 +476,11 @@
+ const SystemPingRequest *ping_request
+ = (const SystemPingRequest*) message;
+
++ if(ping_request->getClientPlayerIndex() >=
PlayerInterface::getMaxPlayers()) {
++ LOGGER.warning("Invalid pingRequest message");
++ return;
++ }
++
+ player_id = PlayerInterface::getPlayerID(
ping_request->getClientPlayerIndex() );
+
+ SystemPingAcknowledge ping_ack;
+Index: src/NetPanzer/Interfaces/PlayerInterface.cpp
+===================================================================
+--- src/NetPanzer/Interfaces/PlayerInterface.cpp (revision 928)
++++ src/NetPanzer/Interfaces/PlayerInterface.cpp (revision 929)
+@@ -25,6 +25,7 @@
+ #include "PlayerNetMessage.hpp"
+ #include "Server.hpp"
+ #include "NetworkServer.hpp"
++#include "Util/Log.hpp"
+
+ #include "ConsoleInterface.hpp"
+ // for UNIT_FLAGS_SURFACE
+@@ -410,6 +411,10 @@
+ = (const PlayerConnectID *) message;
+
+ local_player_index = connect_mesg->connect_state.getPlayerIndex();
++ if(local_player_index >= max_players) {
++ LOGGER.warning("Invalide netMessageConnectID Message");
++ return;
++ }
+
+ SDL_mutexP(mutex);
+ player_lists[local_player_index].setFromNetworkPlayerState
+@@ -423,6 +428,12 @@
+ const PlayerStateSync *sync_mesg
+ = (const PlayerStateSync *) message;
+ uint16_t player_index = sync_mesg->player_state.getPlayerIndex();
++
++ if(player_index >= max_players) {
++ LOGGER.warning("Malformed MessageSyncState message");
++ return;
++ }
++
+ SDL_mutexP(mutex);
+
player_lists[player_index].setFromNetworkPlayerState(&sync_mesg->player_state);
+ forceUniquePlayerFlags();
+@@ -475,6 +486,14 @@
+ const PlayerScoreUpdate* score_update
+ = (const PlayerScoreUpdate *) message;
+
++ if(score_update->getKillByPlayerIndex() >=
PlayerInterface::getMaxPlayers()
++ || score_update->getKillOnPlayerIndex()
++ >= PlayerInterface::getMaxPlayers())
++ {
++ LOGGER.warning("Malformed scrore update packet.");
++ return;
++ }
++
+ PlayerState* player1 = getPlayer(score_update->getKillByPlayerIndex());
+ PlayerState* player2 = getPlayer(score_update->getKillOnPlayerIndex());
+ setKill(player1, player2, (UnitType) score_update->unit_type );
+@@ -487,6 +506,12 @@
+ const PlayerAllianceRequest *allie_request
+ = (const PlayerAllianceRequest *) message;
+
++ if(allie_request->getAllieByPlayerIndex() >= max_players
++ || allie_request->getAllieWithPlayerIndex() >= max_players) {
++ LOGGER.warning("Invalid alliance request message");
++ return;
++ }
++
+ SDL_mutexP(mutex);
+ if ( allie_request->alliance_request_type == _player_make_alliance ) {
+ setAlliance(
+@@ -541,6 +566,12 @@
+ const PlayerAllianceUpdate* allie_update
+ = (const PlayerAllianceUpdate *) message;
+
++ if(allie_update->getAllieByPlayerIndex() >= max_players
++ || allie_update->getAllieWithPlayerIndex() >= max_players) {
++ LOGGER.warning("Invalid alliance update message");
++ return;
++ }
++
+ SDL_mutexP(mutex);
+ if (allie_update->alliance_update_type == _player_make_alliance) {
+ setAlliance(
+Index: src/NetPanzer/Interfaces/InfoThread.cpp
+===================================================================
+--- src/NetPanzer/Interfaces/InfoThread.cpp (revision 928)
++++ src/NetPanzer/Interfaces/InfoThread.cpp (revision 929)
+@@ -174,15 +174,20 @@
+ InfoThread::sendPlayers(std::stringstream& out)
+ {
+ ObjectiveInterface::updatePlayerObjectiveCounts();
+- for(int i = 0; i < PlayerInterface::countPlayers(); ++i) {
++ int n = 0;
++ for(int i = 0; i < PlayerInterface::getMaxPlayers(); ++i) {
+ PlayerState* playerState = PlayerInterface::getPlayerState(i);
+- out << "player_" << i << "\\" << playerState->getName() << "\\"
+- << "kills_" << i << "\\" << playerState->getKills() << "\\"
+- << "deaths_" << i << "\\" << playerState->getLosses() << "\\"
+- << "score_" << i << "\\"
++ if(playerState->getStatus() != _player_state_active)
++ continue;
++
++ out << "player_" << n << "\\" << playerState->getName() << "\\"
++ << "kills_" << n << "\\" << playerState->getKills() << "\\"
++ << "deaths_" << n << "\\" << playerState->getLosses() << "\\"
++ << "score_" << n << "\\"
+ << playerState->getObjectivesHeld() << "\\"
+- << "flag_" << i << "\\"
++ << "flag_" << n << "\\"
+ << (int) playerState->getFlag() << "\\";
++ n++;
+ }
+ // TODO add team/alliance info
+ }
+Index: src/NetPanzer/Classes/Network/NetMessageDecoder.cpp
+===================================================================
+--- src/NetPanzer/Classes/Network/NetMessageDecoder.cpp (revision 928)
++++ src/NetPanzer/Classes/Network/NetMessageDecoder.cpp (revision 929)
+@@ -57,6 +57,12 @@
+ return false;
+
+ *message = (NetMessage *) (decode_message.data + decode_message_index);
++ if( (*message)->getSize() >
++ decode_message.getSize() - decode_message.getHeaderSize() -
++ decode_message_index) {
++ LOGGER.warning("Malformed Multimessage!");
++ return false;
++ }
+ decode_message_index += (*message)->getSize();
+ decode_current_count++;
+
+Index: src/NetPanzer/Classes/Objective.cpp
+===================================================================
+--- src/NetPanzer/Classes/Objective.cpp (revision 928)
++++ src/NetPanzer/Classes/Objective.cpp (revision 929)
+@@ -69,6 +69,11 @@
+ {
+ const SyncObjective *sync_mesg = (const SyncObjective*) message;
+
++ if(sync_mesg->getOccupyingPlayerID() >=
PlayerInterface::getMaxPlayers()) {
++ LOGGER.warning("Malformed ObjectvieMesgSync");
++ return;
++ }
++
+ objective_state.objective_status = sync_mesg->objective_status;
+ objective_state.occupation_status = sync_mesg->occupation_status;
+ if(objective_state.occupation_status != _occupation_status_unoccupied) {
diff --git a/games-strategy-tbs/hedgewars/BUILD
b/games-strategy-tbs/hedgewars/BUILD
deleted file mode 100755
index ec00117..0000000
--- a/games-strategy-tbs/hedgewars/BUILD
+++ /dev/null
@@ -1,5 +0,0 @@
-cmake -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
- -DCMAKE_INSTALL_PREFIX="${INSTALL_ROOT}/usr" \
- -DQT_QMAKE_EXECUTABLE=$TRACK_ROOT/usr/bin/qt4/qmake \
- -DDATA_INSTALL_DIR="$INSTALL_ROOT/usr/share/games" &&
-make
diff --git a/games-strategy-tbs/hedgewars/DEPENDS
b/games-strategy-tbs/hedgewars/DEPENDS
deleted file mode 100755
index 978e886..0000000
--- a/games-strategy-tbs/hedgewars/DEPENDS
+++ /dev/null
@@ -1,8 +0,0 @@
-depends cmake &&
-depends fpc &&
-depends qt4 &&
-depends sdl &&
-depends sdl_image &&
-depends sdl_mixer &&
-depends sdl_net &&
-depends sdl_ttf
diff --git a/games-strategy-tbs/hedgewars/DETAILS
b/games-strategy-tbs/hedgewars/DETAILS
deleted file mode 100755
index 1cc4b25..0000000
--- a/games-strategy-tbs/hedgewars/DETAILS
+++ /dev/null
@@ -1,17 +0,0 @@
- SPELL=hedgewars
- VERSION=0.8.1
- SOURCE=$SPELL-src-$VERSION.tar.bz2
- SOURCE_URL[0]=http://$SPELL.org/download/$SOURCE
-
SOURCE_HASH=sha512:42ab3f31a2a307499b0afc99cdd670587acddd1877cc7a4a7517d019bd12160970f6500fac8e2f377421b14677459345308f31150c9c3526a335b11c0a3e00af
-SOURCE_DIRECTORY=${BUILD_DIRECTORY}/$SPELL-$VERSION
- WEB_SITE=http://hedgewars.org/
- LICENSE[0]=GPL
- ENTERED=20061125
- SHORT="Free Worms-like turn based strategy game"
-cat << EOF
-Hedgewars, it's a Blast! This is the funniest and most addictive game you'll
-ever play - hilarious fun that you can enjoy anywhere, anytime. Hedgewars is
-a turn based strategy game but the real buzz is from watching the devastation
-caused by those pesky hedgehogs with those fantastic weapons - sneaky little
-blighters with a bad attitude!
-EOF
diff --git a/games-strategy-tbs/hedgewars/HISTORY
b/games-strategy-tbs/hedgewars/HISTORY
deleted file mode 100644
index 8345b2f..0000000
--- a/games-strategy-tbs/hedgewars/HISTORY
+++ /dev/null
@@ -1,10 +0,0 @@
-2006-11-30 Eric Sandall <eric AT sandall.us>
- * PRE_BUILD: Properly fix install patch of binaries to /usr/games
- (prior fix did not install hedgewars nor hwengine into /usr/games)
-
-2006-11-25 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
- * BUILD: added qt4 path
- * INSTALL: fix install path
-
-2006-11-25 Pol Vinogradov <vin.public AT gmail.com>
- * DETAILS, DEPENDS, BUILD, INSTALL, PRE_BUILD: created spell
diff --git a/games-strategy-tbs/hedgewars/INSTALL
b/games-strategy-tbs/hedgewars/INSTALL
deleted file mode 100755
index e6fe4f7..0000000
--- a/games-strategy-tbs/hedgewars/INSTALL
+++ /dev/null
@@ -1 +0,0 @@
-make install
diff --git a/games-strategy-tbs/hedgewars/PRE_BUILD
b/games-strategy-tbs/hedgewars/PRE_BUILD
deleted file mode 100755
index 1200cf0..0000000
--- a/games-strategy-tbs/hedgewars/PRE_BUILD
+++ /dev/null
@@ -1,8 +0,0 @@
-default_pre_build &&
-cd ${SOURCE_DIRECTORY} &&
-mv bin games &&
-sedit 's:bin:games:g' CMakeLists.txt &&
-sedit 's:bin:games:' hedgewars/CMakeLists.txt &&
-sedit 's:("bin"):("games"):' QTfrontend/main.cpp.in &&
-sedit 's:("bin"):("games"):' QTfrontend/main.cpp &&
-sedit 's:DESTINATION bin:DESTINATION games:' QTfrontend/CMakeLists.txt



  • [SM-Commit] GIT changes to master games grimoire by Andra?? Levstik (4d51ae129f32b7cf569812551309278d59a7cd72), Andra?? Levstik, 12/15/2006

Archive powered by MHonArc 2.6.24.

Top of Page