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
Joris
a642e1a58d
Remove another CUnit *table[UnitMax];
2012-04-24 10:54:26 +02:00
Joris
907da98677
[AStyle]
2012-04-24 10:29:43 +02:00
Joris
a5954b4d47
Clean up : in variable declaration.
2012-04-23 16:59:01 +02:00
Joris
67356be494
Do not save some stat which are equal to the default value (-> smaller save file).
2012-04-23 16:56:16 +02:00
Joris
6c17b089cb
Don't delete twice UpgradeModifiers[i]->Modifier.Variables.
2012-04-23 16:15:49 +02:00
Joris
ad79821331
Use CUnitStat in Type to replace _Cost and Variable
2012-04-23 15:51:25 +02:00
Joris
bd685f2cb6
Reset Triggers lua variable to Nil in CleanTriggers.
2012-04-23 13:06:25 +02:00
joris
7cc689cee2
Fix cleaning order (avoid some crashes).
2012-04-22 13:54:42 +02:00
joris
e0671266fe
Fix Construction redefinitions, and also fix crash in action_built.cpp
2012-04-22 12:05:22 +02:00
Joris
c38fc4996e
[AStyle]
2012-04-19 18:59:34 +02:00
Joris
3b1322a662
Fix warning with gcc
2012-04-19 18:54:08 +02:00
iddqd-mail
9a37372325
[+] Finished the more general button's popup system (docu not complete yet)
...
[+] Added new operator in NumberDesc, TypeVar(Variable, Component), which returns some unit type data. Currently used only in button's popup system.
[-] Removed button's Description from status line, use popup for that
2012-04-19 21:32:48 +06:00
Joris
f2ffaddbc5
Fix crash since Action may also modify the array.
2012-04-19 17:06:15 +02:00
Joris
781966d96e
Remove unused MAX_LOCAL_MISSILES
...
Remove MAX_MISSILES (drawing limit).
2012-04-19 14:09:17 +02:00
Pali Rohár
d66f2cdab5
Fix compilation in debug mode - abort() needs stdlib.h
2012-04-19 10:50:57 +02:00
Joris
c2adcee24b
a reinterpret_cast should be static_cast.
2012-04-18 17:42:40 +02:00
Joris
b0cd6e3048
[AStyle] : all header files.
2012-04-18 17:39:35 +02:00
Joris
74dc1989e1
[AStyle] : max-instatement-indent=60
2012-04-18 16:54:37 +02:00
Joris
bf3425cfbb
Clean up : Replace (!(!foo && bar)) by (foo || !bar).
2012-04-18 16:42:18 +02:00
Joris
d89b0e3fd0
Clean up : use reinterpret_cast instead of C Cast
2012-04-18 16:31:42 +02:00
Joris
720bc8c831
[AStyle] : on most cpp files.
2012-04-18 16:09:57 +02:00
Joris
4ec2ba35af
Remove 'duplicated' MissileType container.
2012-04-18 13:20:57 +02:00
Joris
3889acc8f7
Rewrote FreeMissile to be O(1) instead of O(n) (and inline it)
...
Some clean up in missile.(int to bool)
2012-04-18 12:58:41 +02:00
Joris
50e5390ca7
Add MissileConfig
...
and some clean up.
2012-04-18 12:16:22 +02:00
Joris
5e5fca8fd0
Fix crashing issue when loadnig a game with more than 3 ai-forces.
2012-04-18 09:54:39 +02:00
Joris
aa316b473e
Remove parallell drawing code (which was buggy and deactivated).
2012-04-17 17:24:30 +02:00
Joris
c1f3459d6e
Move all parallell drawing stuff in the same place and put code in #if block.
2012-04-17 16:17:26 +02:00
Joris
323b91c6b7
split missile file.
2012-04-17 12:18:53 +02:00
Joris
c3bff8491d
Move missile in its own directory.
2012-04-17 10:58:43 +02:00