Skip to content

Commit

Permalink
Merge branch 'bugfixes' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
automerge authored and cybersphinx committed Oct 8, 2012
2 parents fdf2282 + b26d94f commit a9c2db1
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 29 deletions.
7 changes: 4 additions & 3 deletions ChangeLog
@@ -1,4 +1,4 @@
2012-09-NN: Version 3.1 rc3
2012-10-NN: Version 3.1 rc3
* General:
* Warning: Warn players to downgrade/upgrade PhysFS package from a buggy version 2.0.2 (ticket:3700, commit:408be743f017cce1519cd955767abf0e697ab7f7)
* Change: Patch PhysFS in the Mac build until there is a new release (commit:a05e8c980bc42fa66ed1b81ae40793645df8efbf)
Expand All @@ -17,8 +17,9 @@
* Fix: Fixed failure to repair commanders on Alt+click (ticket:1997, commit:56001781bcfcbecbd93831499a539d66b50d27d9)
* Fix: No longer halt factory production assigned to commanders in skirmish on commander limit, or for VTOLs (ticket:2138, commit:0773a9ff6cfc344def015f349e39fa62d09fe697)
* Fix: Automatically relocate delivery points when new structures are going to be built on top of them (ticket:2998, commit:1cc0d533f4edf33e672da3b55eb8f3d741db81e1)
* Fix: Update visible tiles immediately when researching sensor upgrades (ticket:3450, commit:b1a1a8e445d29bc2ea5b1ea8b36d93e80d8c656d)
* Fix: Use separate stored-template file for skirmish and campaign (ticket:3702, commit:d969dd7756859b0daea5ac2fe16422511f6876e0)
* Graphics:
* Change: Update png to 1.5.13 in the mac build (commit:2d3c39e660110f35eb2da0ac5d63f4c2ec9bcea7)
* Fix: Droid parts now properly fly away from a droid which explodes above water (ticket:3681, commit:60c235ab3ff835edb60b0e0c020923351c893893)
* Fix: Turrets no longer appear to bounce when firing from atop a tower (ticket:2789, commit:d608f37fadfa969c225fef8149eaa700cc878a46)
* UI:
Expand All @@ -29,6 +30,7 @@
* Fix: Fixed location of centre of viewport rendered on radar window (ticket:3619, commit:0dde269379507a897ef2945ca76f840a8994f04a)
* Fix: Fixed bug which caused a weird behavior in the way menus worked (ticket:3653, commit:594b8a6c631b160fda06f9ffca4b9f227c97c3f8)
* Multiplayer:
* New: Add new maps by NoQ: Emergence (10p), Monocot (3p), Bloat (5p) and WindFury (9p) (commit:858664124de97921a551367656c0ba7cf4aecf3d)
* Change: Make available again research topics if the Research Facilities researching these particular topics are out-of-order temporarily for construction of Research Modules (commit:5bac6e4273fbdbd43acaf4a0042b373d4c9dec7c)
* Change: Allow setting/clearing game password even after a game is hosted. Also, if typing password and pressing Enter, will actually set the password (commit:9575cf93e2a0b39c11d7bd2f51aef100fe4dae57)
* Change: Disabled game name icon in multiplayer, since it didn't do anything anyway (ticket:1231, commit:831d22c7d26930872a9ec766177f8a00b63ace98)
Expand Down Expand Up @@ -170,7 +172,6 @@
* Update: Turkish (ticket:3486, commit:a400fe055fd5d176cd809bcfdc0973cf839a4a2c)
* Update: Dutch (ticket:3484, commit:c46d2d56ea3cbfe9d7ba7516f5b1962a2fef2d37)


2012-05-13: Version 3.1 beta10
* General:
* Fix: Loading of skirmish games (ticket:3451, commit:18216c60e76d05ad0fe2bf7d860347f76f70c8f8)
Expand Down
22 changes: 11 additions & 11 deletions data/mp/multiplay/skirmish/nexus.slo
Expand Up @@ -3260,16 +3260,16 @@ function bool attemptToHelp(int _playerToHelp, int _x, int _y)
if(haveHelpers() or _DEBUG)
{
dbg("got attackers", me);
if(allyBaseAtLoc(_playerToHelp, _x, _y)) //is he just trying to misuse us?
{
//if(allyBaseAtLoc(_playerToHelp, _x, _y)) //is he just trying to misuse us?
//{
helpPlayer(_playerToHelp, _x, _y);
return TRUE;
}
else
{
dbg("ally needs no help", me);
messagePlayer(ALL_ALLIES, M_ANNOYED, MAX_PROBABILITY / 2);
}
//}
//else
//{
// dbg("ally needs no help", me);
// messagePlayer(ALL_ALLIES, M_ANNOYED, MAX_PROBABILITY / 2);
//}
}
else
{
Expand Down Expand Up @@ -3431,9 +3431,9 @@ function bool canStopHelpingAlly()
}

/* Nothing to defend anymore */
if(!allyBaseAtLoc(lastHelpPlayer, helpX, helpY)){
return TRUE;
}
//if(!allyBaseAtLoc(lastHelpPlayer, helpX, helpY)){
// return TRUE;
//}

return FALSE;
}
Expand Down
22 changes: 11 additions & 11 deletions data/mp/multiplay/skirmish/semperfi.slo
Expand Up @@ -3681,16 +3681,16 @@ function bool attemptToHelp(int _playerToHelp, int _x, int _y)
if(haveHelpers() or _DEBUG)
{
dbg("got attackers", me);
if(allyBaseAtLoc(_playerToHelp, _x, _y)) //is he just trying to misuse us?
{
//if(allyBaseAtLoc(_playerToHelp, _x, _y)) //is he just trying to misuse us?
//{
helpPlayer(_playerToHelp, _x, _y);
return TRUE;
}
else
{
dbg("ally needs no help", me);
messagePlayer(ALL_ALLIES, M_ANNOYED, MAX_PROBABILITY / 2);
}
//}
//else
//{
// dbg("ally needs no help", me);
// messagePlayer(ALL_ALLIES, M_ANNOYED, MAX_PROBABILITY / 2);
//}
}
else
{
Expand Down Expand Up @@ -3852,9 +3852,9 @@ function bool canStopHelpingAlly()
}

/* Nothing to defend anymore */
if(!allyBaseAtLoc(lastHelpPlayer, helpX, helpY)){
return TRUE;
}
//if(!allyBaseAtLoc(lastHelpPlayer, helpX, helpY)){
// return TRUE;
//}

return FALSE;
}
Expand Down
2 changes: 1 addition & 1 deletion macosx/Warzone.xcodeproj/project.pbxproj
Expand Up @@ -4413,7 +4413,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "cd ${SRCROOT}/external/physfs\n\nif [ -f \"882cdbd7d0a3.diff\" ]; then\n\texit 0\nfi\n\nif ! curl -LfC - --connect-timeout \"30\" -o \"882cdbd7d0a3.diff\" \"http://hg.icculus.org/icculus/physfs/raw-rev/882cdbd7d0a3\"; then\n\tif ! curl -LfOC - --connect-timeout \"30\" \"http://wz2100.net/~dak180/BuildTools/Mac/882cdbd7d0a3.diff\"; then\n\t\techo \"error: Unable to fetch vorbis.diff\" >&2\n\t\texit 1\n\tfi\nfi\n\nif ! cat \"882cdbd7d0a3.diff\" | patch --posix -sNfp1; then\n\techo \"error: Unable to apply vorbis.diff\" >&2\n\texit 1\nfi\n\nexit 0\n";
shellScript = "cd ${SRCROOT}/external/physfs\n\nif [[ -f \"882cdbd7d0a3.diff\" ]] && [[ -f \"8qzAkGJa.diff\" ]]; then\n\texit 0\nfi\n\nif ! curl -LfC - --connect-timeout \"30\" -o \"882cdbd7d0a3.diff\" \"http://hg.icculus.org/icculus/physfs/raw-rev/882cdbd7d0a3\"; then\n\tif ! curl -LfOC - --connect-timeout \"30\" \"http://wz2100.net/~dak180/BuildTools/Mac/882cdbd7d0a3.diff\"; then\n\t\techo \"error: Unable to fetch 882cdbd7d0a3.diff\" >&2\n\t\texit 1\n\tfi\nfi\n\nif ! curl -LfC - --connect-timeout \"30\" -o \"8qzAkGJa.diff\" \"http://pastebin.com/raw.php?i=8qzAkGJa\"; then\n\tif ! curl -LfOC - --connect-timeout \"30\" \"http://wz2100.net/~dak180/BuildTools/Mac/8qzAkGJa.diff\"; then\n\t\techo \"error: Unable to fetch 8qzAkGJa.diff\" >&2\n\t\texit 1\n\tfi\nfi\nperl -pi -e 's/\\r\\n/\\n/g' 8qzAkGJa.diff\nsed -i -e '$a\\' \"8qzAkGJa.diff\"\n\nif ! cat \"882cdbd7d0a3.diff\" \"8qzAkGJa.diff\" `echo ` | patch --posix -sNfp1; then\n\techo \"error: Unable to apply vorbis.diff\" >&2\n\texit 1\nfi\n\nexit 0\n";
};
43964E45150EDCE2007BCC60 /* Vorbis - Patch */ = {
isa = PBXShellScriptBuildPhase;
Expand Down
4 changes: 2 additions & 2 deletions macosx/configs/fetchscripts/SetupPrebuiltComponents-Docs.sh
@@ -1,10 +1,10 @@
#!/bin/sh

OutDir="WarzoneHelp"
DirectorY="${OutDir}-b66426c"
DirectorY="${OutDir}-fdf2282"
FileName="${DirectorY}.tgz"
BuiltDLP="http://downloads.sourceforge.net/project/warzone2100/build-tools/mac/${FileName}"
MD5Sum="e0f3b5d15efa4a063461c1ffb21769b8"
MD5Sum="44f9d1204f55b6fe536e3dc86f454f4e"

configs/FetchPrebuilt.sh "${DirectorY}" "${OutDir}" "${FileName}" "${BuiltDLP}" "${MD5Sum}"
exit ${?}
3 changes: 2 additions & 1 deletion src/qtscriptfuncs.cpp
Expand Up @@ -1145,7 +1145,7 @@ static QScriptValue js_debug(QScriptContext *context, QScriptEngine *engine)

//-- \subsection{pickStructLocation(droid, structure type, x, y)}
//-- Pick a location for constructing a certain type of building near some given position.
//-- Returns a position object containing "x" and "y" values, if successful.
//-- Returns an object containing "type" POSITION, and "x" and "y" values, if successful.
static QScriptValue js_pickStructLocation(QScriptContext *context, QScriptEngine *engine)
{
QScriptValue droidVal = context->argument(0);
Expand Down Expand Up @@ -1235,6 +1235,7 @@ static QScriptValue js_pickStructLocation(QScriptContext *context, QScriptEngine
QScriptValue retval = engine->newObject();
retval.setProperty("x", x + map_coord(offset.x), QScriptValue::ReadOnly);
retval.setProperty("y", y + map_coord(offset.y), QScriptValue::ReadOnly);
retval.setProperty("type", SCRIPT_POSITION, QScriptValue::ReadOnly);
return retval;
}
else
Expand Down

0 comments on commit a9c2db1

Please sign in to comment.