Per Inge Mathisen
35c00b924d
Make 'make check' work again.
2011-01-24 20:14:25 +01:00
Per Inge Mathisen
cead34eea3
Hack around some accumulated brokenness to make --selftest work again
2011-01-24 20:07:30 +01:00
safety0ff
f1ebbe6eba
Add guard to YY_NO_UNISTD_H definition.
...
Closes #2444 .
2011-01-24 13:09:16 -05:00
dak180
8ecf322cc7
A better way to copy the data directory.
2011-01-23 17:12:31 -05:00
Per Inge Mathisen
763d3d0380
Fix cross-compile warnings
2011-01-23 22:48:52 +01:00
Per Inge Mathisen
4df5268717
Do not load scripts for player who are not supposed to run them. This saves us from having to check this in the scripts themselves.
...
Also change some player functions from unsigned to signed since a missing scavenger player is sometimes communicated as -1.
2011-01-23 21:48:10 +01:00
Per Inge Mathisen
beeb1fb77e
New backdrop image by jorzi
2011-01-23 21:44:04 +01:00
littlepig
ba7607967c
Refactoring of case MOVEFIRE in actionUpdateDroid, in action.cpp
2011-01-23 13:03:31 +00:00
Per Inge Mathisen
3f5128d8d5
Fix fix for script crash due to not nulling script objects on death.
2011-01-22 22:30:26 +01:00
Per Inge Mathisen
bf6eba1021
Add more death logging to trace odd script bugs
2011-01-22 20:38:27 +01:00
Per Inge Mathisen
34b3161be0
Fix blocking bug in danger map code if a larger than 2v2 building is placed on top of the player's starting position.
2011-01-22 20:14:21 +01:00
Per Inge Mathisen
1c1a9a5be1
Fix unused var warning
2011-01-22 18:43:04 +01:00
littlepig
affcedaa2d
removed DORDER_MOVE_ATTACKWALL and DORDER_SCOUT_ATTACKWALL orders due to not being used.
2011-01-22 13:09:06 +00:00
Per Inge Mathisen
f30c15bf20
New script function BASEOBJ getDerrick(int) that returns indexed derrick objects. Can be iterated until it returns a NULLOBJECT.
...
Modify semperfi to use this function for attacks of opportunity against undefended oil derricks.
2011-01-22 14:01:30 +01:00
dak180
46aadf5a70
Switch the bot builds to use git.
2011-01-22 02:18:34 -05:00
littlepig
44ebc96366
Removed function cmdSelectSubDroids due to not being used on the code. Cleaned BOOL from cmddroid.h/cpp.
2011-01-21 17:46:06 +00:00
littlepig
ec90151d03
Stilling and design improvements over the last commit.
2011-01-20 22:18:00 +00:00
littlepig
9119852cc0
Rest of functions from group.h changed to methods of class DROID_GROUP.
2011-01-20 22:18:00 +00:00
littlepig
75e8001219
Added a std::list<DROID_GROUP *> grpGlobalManager; to replace the 'firstgroup' to avoid every DROID_GROUP object having previous and next DROID_GROUP object to erase all at end shutdown.
...
DROID_GROUP became class. grpJoin function was made a method of DROID_GROUP, DROID_GROUP::Add(DROID*psDroid) and every instance of grpJoin(DROID_GROUP*, DROID*) was replaced by DROID_GROUP*->Add(DROID). Code was tested both compile and run, and everything is working as supposed, including Initialization and ShutDown of a game.
2011-01-20 22:18:00 +00:00
Cyp
9a0933f823
Remove unused variables.
2011-01-20 22:22:56 +01:00
Cyp
3d5f96f199
Fix memory leak when saving config.
...
Fixes ticket:2455.
2011-01-20 21:26:00 +01:00
Per Inge Mathisen
ef75bac968
Mg damage to cyborgs up 10%, to tracks down 10%, and to bunkers down 5%. Cannon damage to buildings and hardpoints up 10% and to bunkers up 25%.
2011-01-20 19:36:09 +01:00
Cyp
9a10bba6cb
Make structure target prioritisation more precise.
...
Prefer uncompleted non-wall structures over completed walls. Prefer nearby uncompleted structures over distant uncompleted structures.
Check whether a target is allied before checking line of sight (this can make a slight performance difference between 2.5 FPS and 40 FPS on maps with many structures).
2011-01-20 18:55:59 +01:00
Cyp
f952c71d6c
Remove meaningless initialisation.
2011-01-20 17:44:58 +01:00
cybersphinx
54c6548c10
Turkish translation update by Ayhan Görgülü.
...
Closes #2453 .
2011-01-19 19:39:46 +01:00
Cyp
c5a6f8b280
Fix valgrind warning due to use of inif->size instead of inif->n in loop.
...
Fixed by removing the inif->size and inif->n variables and using a std::vector instead.
2011-01-19 15:01:45 +01:00
Cyp
e3c051bb2a
Remove test for broken floating point support, since floats are being removed instead.
2011-01-19 14:09:31 +01:00
Cyp
72b97e22ec
Fix strict-aliasing warning errors.
2011-01-19 13:18:19 +01:00
Per Inge Mathisen
87d4860502
Forgot header change to go with last commit
2011-01-18 23:56:33 +01:00
Per Inge Mathisen
8173cbfaa2
Remove some dead code (just a little bit)
2011-01-18 23:54:05 +01:00
Cyp
c9b7032424
Fix weird name truncation.
2011-01-18 23:41:09 +01:00
Cyp
4773fc5f87
Rename Player A..F → Player 10..15.
2011-01-18 22:57:37 +01:00
Per Inge Mathisen
45460926cf
semperfi: Make AI build ripple rockets and archangels, and stormbringer AA.
2011-01-18 22:43:52 +01:00
Per Inge Mathisen
90f506feb5
Add slot number to position chooser as requested by dak180
2011-01-18 22:43:52 +01:00
Cyp
34d8148e4a
Don't display more than 5 factories in the commander production menu, since that's how many are in the relevant bitmask.
...
Fixes ticket:2449.
2011-01-18 22:32:55 +01:00
Per Inge Mathisen
8607441e64
Lift restriction on 2000 globals in scripts in total by rewriting some code to use std::list. Patch reviewed by Cyp.
2011-01-18 22:05:26 +01:00
Per Inge Mathisen
36fddc036e
Remove some dead code
2011-01-18 21:39:37 +01:00
Per Inge Mathisen
a613e2b6b9
Revert "Remove a ton of unused, script-related code, and lift the needless limit on 2000 globals for all scripts combined."
...
Turns out this was a hack that the scripting system used to keep track of which BASE_OBJECT references that needed to be deleted.
This reverts commit 992844f3b5
.
2011-01-18 21:39:37 +01:00
cybersphinx
e8a065f6a0
Use empty CXXFLAGS by default, not whatever autoconf thinks we should use.
2011-01-18 19:53:37 +01:00
cybersphinx
53ae8b198c
Revert "Force -O0 to the end of the flag list to override autohell's default -O2"
...
This reverts commit e65751e43b
.
2011-01-18 19:53:37 +01:00
littlepig
bd6b47a4c0
Constructors repair buildings during patrols.
...
Repair Droids repair droids during patrol.
Fixes ticket:195.
2011-01-18 18:21:09 +00:00
Per Inge Mathisen
2d6ea37c54
Fix various issues prompted by running valgrind and cppcheck. Patch reviewed by Cyp.
2011-01-18 18:51:42 +01:00
Per Inge Mathisen
e65751e43b
Force -O0 to the end of the flag list to override autohell's default -O2
2011-01-18 17:59:55 +01:00
Cyp
82fbf17cff
Make team and colour of AIs visible to non-hosts.
...
Also, remove tooltip saying non-hosts can change AI difficulty levels.
2011-01-18 14:34:23 +01:00
Cyp
4b26114644
Fix AI-designed template being sent as belonging to host.
...
This caused a desynch when using Semperfi AI.
2011-01-18 13:58:48 +01:00
cybersphinx
826a0ef374
Exit the cross-build script if cross-compiler not installed.
2011-01-18 03:54:14 +01:00
cybersphinx
f01a35e768
Remove Dydo-AI and Semperfi mods from the nsis installer.
2011-01-18 02:54:51 +01:00
cybersphinx
038a3d5147
Remove remnants of the old iniparser.
2011-01-18 01:19:32 +01:00
cybersphinx
a16861f1ae
Update translations.
2011-01-18 00:54:34 +01:00
cybersphinx
4d587bb3ef
Russian translation update by Rimbok.
2011-01-18 00:51:23 +01:00