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
Joris
b77f45e4b7
Fix possible crash when the last defending unit die in AiForce.
2012-05-11 14:18:19 +02:00
Joris
6456c57755
Fix warning about mixing && and || by rewriting the code.
2012-05-11 14:00:32 +02:00
cybermind
c0de6fd1f0
[+] Ability to set specific rules for AI players how to build buildings. Use AiBuildingRules in CUnitType for that (same syntax as in BuildingRules)
...
[+] Defence forces now can return to base if no more enemy units left.
[+] Move CUnitType._Storing to stats, it's possible to use Storing in upgrades.
[*] Don't check the builder in CBuildRestrictionDistance
[*] Don't restore the saved attack order for dead units.
[-] Fixed bug which didn't let the defence force to retaliate.
2012-05-11 14:19:30 +06:00
Joris
1944bfa6fb
Add a lua call back when game ends : CleanGame_Lua.
2012-05-10 17:44:26 +02:00
Joris
8f88ea441f
Updapte some disabled code (for DinkyDyeAussie).
2012-05-10 13:57:36 +02:00
cybermind
0c641ff157
[-]Fixed chashes introduced in rev.8259
2012-05-05 19:19:18 +06:00
Joris
941c173193
Manage Attack with transporter
2012-05-05 05:15:22 +02:00
Joris
ca18f02d29
Fix typo about range/attackrange which make attackwith transport fail.
2012-05-03 20:21:41 +02:00
cybermind
c59a035066
[+] Reverted back the gray dot showing for UnitActionStill.
...
[+] Added support for AlwaysFire flag in spawn-missile anim.
[*] More complete changelog.
[-] Fixed unit freeze for UnitActionStandGround.
[-] Fix MaxResources manage.
[-] Fixed clamp assert if left and right ranges are equal.
2012-05-03 19:46:26 +06:00
Joris
4722ed21c9
Some more clean up.
2012-05-03 14:59:49 +02:00
Joris
d9198c8227
Clean up :
...
- Rename AiForce::Clean into RemoveDeadUnit.
2012-05-03 14:24:42 +02:00
Joris
6e6ff87cde
Fix warning in release with gcc
2012-05-03 12:48:01 +02:00
Joris
359d0078e3
[AStyle]
2012-05-03 11:32:36 +02:00
Joris
c43b9c2e1d
[Changelog] Change number of version to 2.2.7
...
Add compatibility with Lua 5.2
2012-05-03 11:30:31 +02:00
Joris
917831799d
Fix compilation when using lua 5.2
2012-05-03 11:17:59 +02:00
Joris
b1ae3587a2
Replace AiBuildQueue::[XY] by Vec2i Pos
...
Some clean up
2012-05-02 17:28:14 +02:00
joris
c561890502
Fix undefined _ASSERT in clamp function for MSVC.
2012-04-29 13:03:36 +02:00
Joris
1701030080
Comment Assert with broke the build with MSVC.
...
true fix coming.
2012-04-28 01:43:33 +02:00
Joris
6ba4c4a96e
Replace CMinimap::DrawCursor by DrawViewportArea.
2012-04-27 16:15:22 +02:00
Joris
fb2469658a
Replace CViewport::Map[XY] by MapPos and CViewport::Offset[XY] by Offset.
...
Remove unused args of CMinimap::Draw
2012-04-27 15:58:17 +02:00
Joris
3bbde68a25
Factorize code with new function clamp.
2012-04-27 12:36:48 +02:00
Joris
2f97c091fb
Fix "typo" in Cybermind commit.
2012-04-27 10:52:04 +02:00
Joris
ef28ab5a84
[AStyle]
2012-04-27 10:44:07 +02:00
Joris
e295fc7d0e
Fix warning with gcc (mixing && and || )
2012-04-27 10:35:13 +02:00
cybermind
6385d60e37
[+] Added new feature to show unit's name under cursor. Use Preference.ShowNameDelay and Preference.ShowNameTime.
...
[-] Fixed bug with popup's variable stats.
2012-04-26 23:54:46 +06:00
Joris
13d6e457e2
Move CViewport in its own header,
...
rename X, Y into TopLeftPos
rename EndX, EndY into BottomRightPos
Factorize code with new methods Contains, Restrict, SetClipping
Change Center param: now takes directly mapPixelPos instead of tilePos + offset.
fix typo in mouse.cpp from previous commit.
2012-04-26 18:29:43 +02:00
Joris
64f2e1d626
Clean up : Add Contains(screenPos) for several UI classes.
2012-04-26 11:11:33 +02:00
Joris
1b95166649
Clean up : Split DoRightButton in several subFunction.
2012-04-26 10:25:31 +02:00
Joris
0b53dc00d2
Clean up : Use PixelPos instead of x, y
2012-04-24 14:58:33 +02:00
Joris
8e0fda76e2
Add CMap::MapPixelPosToTilePos, CMap::TilePosToMapPixelPos_TopLeft, CMap::TilePosToMapPixelPos_Center to factorize some code (and have done it).
2012-04-24 12:46:00 +02:00
Joris
dd8972f69c
Remove CUnit *table[UnitMax] in deactivated code.
2012-04-24 11:17:28 +02:00