Commit graph

15865 commits

Author SHA1 Message Date
Joris
c381320afe Replace CursorStartScrMap[XY] by CursorStartMapPos. 2012-06-20 20:17:30 +02:00
Joris
b354b21604 Fix warning in release. 2012-06-20 14:37:25 +02:00
Joris
6534ded89e Move some stuff from unit.h in more appropriate place 2012-06-20 14:09:42 +02:00
Joris
cf7df9082e Move some stuff from actions.h in more correct places. 2012-06-20 11:35:56 +02:00
Pali Rohár
26b6ba193a CMakeLists.txt: Set correct defaults install paths 2012-06-19 18:41:00 +02:00
Joris
b684c35181 Remove some unneeded #include (already in stratagus.h). 2012-06-19 17:18:40 +02:00
Joris
3da9385b7c Move some hard coded stuff in its own method.
(no longer use Map::ForestOnMap for WoodCost)
2012-06-19 15:51:32 +02:00
iddqd-mail
4469edffcd [+] Added ability to write chat messages into replay.
[*] Disabled map grid drawing in debug mode by default, use DEBUGMAPDRAW preprocessor variable to enable it.
[*] MissileClipToTarget now checks if attacker is alive when dealing a damage.
[-] Another bunch of fixes in MaxResources management.
[-] Play GameSounds.NotEnoughRes sounds only for this player.
[-] Fixed incorrect drawing of reverse font.
2012-06-19 16:29:11 +06:00
Joris
38a13f3b0b Remove obsolete Matrix stuff. 2012-06-18 17:35:55 +02:00
Joris
feeb23bd63 Fix compilation when MNG support is active. 2012-06-18 11:42:12 +02:00
Pali Rohár
812d79410c Debian package stratagus-dbg depends on libc6-dbg 2012-06-17 16:27:45 +02:00
Pali Rohár
83f2d9c599 Fix compilation: Unix systems are case sensitive 2012-06-17 16:27:08 +02:00
Joris
6f0d2c0472 Rewrite AiForce::PlanAttack (attack with transporter) with terrainTraversal. 2012-06-15 21:43:43 +02:00
iddqd-mail
7e838d00bc [-] Fixed a crash when trying to build an addon for building (oil platform) 2012-06-15 18:07:04 +06:00
Joris
851694b7b6 Rewrite AiFindWall with TerrainTraversal. 2012-06-15 12:49:55 +02:00
Joris
368c94fa85 Rewrite UnitFindResource using terrain traversal.
Some clean up of terrainTraversal.
2012-06-15 11:47:44 +02:00
iddqd-mail
973631c335 [+] Ability to get info for unit's bool-flags and currently used spell in animations.
[+] Ability to change some target's variable when missile hits it. Use (in DefineMissile) ChangeVariable for variable name, ChangeAmount for changing amount (may be negative) and bool ChangeMax to increase the Max field if Value will be greater than Max.
[*] CclDefineUnitStats now supports more user defined variables (NOTE: saves compatibility will be lost)
[*] AI units who uses repeat-cast magic won't stop on each cast.
[-] Units no more attack revealers.
[-] Some fixes to stored resources.
[-] Don't clone attack action for dead units.
2012-06-15 11:24:08 +06:00
Joris
75f911dbc9 Remove no more used functions MakeMatrix 2012-06-14 15:35:09 +02:00
Joris
d38ec2893e Some clean up. 2012-06-14 12:44:40 +02:00
Joris
ce71bb34f2 Rewrite AiFindMiningPlace using TerrainTraversal.
Fix bug in Terrain Traversal.
2012-06-14 12:19:03 +02:00
Joris
71fa19ef76 Fix regression with previous commit : Use workerPos when StartPos is Invalid for AiFindLumberMillPlace 2012-06-13 18:32:40 +02:00
Joris
bb2fe2b1ab Rewrite AiFindLumberMillPlace and AiFindHallPlace to use the new TerrainTraversal code. 2012-06-13 18:23:30 +02:00
Joris
f600d3d68a Reactivate aicode to search place of specific building. (and so build hall nearer of mine when possible).
Rewrite AiFindBuildingPlace2 with TerrainTraversal.
Fix possible crash with previous commit.
2012-06-13 16:51:21 +02:00
Joris
37b23caeb1 Find a more logical position to harvest giving a pos inside wood (but still ignore peon pos in computation). 2012-06-13 11:43:42 +02:00
Joris
28f4a213c3 Rewrite FindTerrainType to use the new terrainTraversa (to replace the Matrix stuff). 2012-06-13 10:20:21 +02:00
Joris
61029b1669 CUnit::Type is now const. 2012-06-11 17:27:54 +02:00
Joris
ee349a9fa8 Some clean up. 2012-06-11 15:19:52 +02:00
Joris
fd8494b079 Some clean up. 2012-06-11 14:25:09 +02:00
Joris
ea858d8402 Clean up : Remove unused function, Remove unneeded include. 2012-06-11 12:52:48 +02:00
Joris
ed17bc85c2 Some clean up. 2012-06-11 12:17:19 +02:00
Joris
c5005efb98 [AStyle] 2012-05-30 21:32:02 +02:00
Joris
785d51953c Some clean up. 2012-05-30 21:16:19 +02:00
cybermind
b291dacfb5 [+] Added ability not to overlap the unit voice if unit currently plays a voice.
[-] More check for valid orders
2012-05-29 19:28:27 +06:00
joris
74e33dda51 Fix UnitUnderCursor for unit visible under fog : Right-click on (under fog) gold-mine work as expected (harvesting). 2012-05-28 11:53:38 +02:00
joris
4a5bffd839 Fix Show Order for Debug. 2012-05-28 11:49:09 +02:00
Pali Rohár
1b8a9d0703 Added variable MAKENSIS_ADDITIONAL_FLAGS for specifing user flags for makensis 2012-05-27 22:53:10 +02:00
Joris
19cab71fd3 Remove trailling '\' in data_path for windows which make the (game) data to be not found. 2012-05-24 14:32:36 +02:00
Pali Rohár
bcaa7f6652 Register lua functions for geting scroll speed 2012-05-23 13:24:49 +02:00
Pali Rohár
3ad4554e24 Merge branches 2012-05-23 11:25:49 +02:00
Joris
209058729c Fix Attack with transporter. 2012-05-21 17:14:55 +02:00
Joris
a176346d27 Fix CUnit::StoreOrder. 2012-05-21 14:13:33 +02:00
Joris
c870768c3a ThreatCalculate takes referene instead of pointer. 2012-05-21 13:06:36 +02:00
Joris
52400c78d2 [AStyle] 2012-05-21 12:34:32 +02:00
Joris
f0830e9982 Clean up : remove unused var, fix warning about printf, use int directly in for statement 2012-05-21 11:23:59 +02:00
Pali Rohár
ee51382a4e Do not overwrite CMAKE_CXX_FLAGS and CMAKE_EXE_LINKER_FLAGS variables
Make install paths configurable

Patch by hasufell
2012-05-20 19:48:55 +02:00
Pali Rohár
8b3e5c8d45 Fixed compilation of non debug version 2012-05-20 15:11:02 +02:00
Pali Rohár
198686dfd6 Fix GCC printf warnings 2012-05-20 15:01:37 +02:00
cybermind
cba6378cc7 [+] Great improvement of AI:
- The AI unit will prefer only those targets, which have specified set of flags, use new UnitType field PriorityTarget (same syntax as in CanTargetFlag)
- AI workers prefer to find mines near to depots.
- More effective control to defence forces, the idle units always try to attack back.
- Fixed new goal finding to attacking AI forces.
- Try to prefer buildings as a goal for attacking forces.
- Special threshold counter which didn't allow AI to change target for some time.
- Fixed AiHelpMe for non-building units.
[-] Fixed incorrect CUnit::TTL countdown.
2012-05-19 23:25:59 +06:00
Joris
17540efd29 Fix CUnit::RestoreOrder to remove invalid stocked order.
Make the check of Order validity more generic.
2012-05-11 14:58:43 +02:00
Joris
35ca59780b [AStyle] 2012-05-11 14:19:01 +02:00