4995 Commits

Author SHA1 Message Date
Mark de Wever
dada2d48e1 merged commit 2006-10-16T01:58:47Z!rusty@rustcorp.com.au from 1.2 2007-02-24 22:27:46 +00:00
Patrick Parker
6f1ba9528f replace message option condition show_always=no with...
...[show_if]condition[/show_if]
2007-02-24 22:20:53 +00:00
Mark de Wever
e7646f7581 merged commit 2006-09-03T05:11:11Z!rusty@rustcorp.com.au from 1.2 2007-02-24 22:08:48 +00:00
Patrick Parker
e6a4ee4035 fix an omission in the lazy evaluation code:
non recall units should be auto-stored inside unit::matches_filter()
2007-02-24 21:02:54 +00:00
Mark de Wever
3c199d3d1d created a visibility cache for an unit and cache it in the unit
created a global cache to remember which units have items in their
internal cache the caches are invalidated as soon as an event is
executed

this gives another speedup, the pathfinder cache can probably be
removed in favour of this cache
2007-02-24 20:08:57 +00:00
Martin Renold
0f90b908ad invalidate_all for fog when own unit gets killed during enemy turn 2007-02-24 17:32:31 +00:00
Patrick Parker
061c09ec5d fix non-virtual destructor warning 2007-02-24 09:43:51 +00:00
Patrick Parker
31c41edcff use lazy-evaluation to auto-store units 2007-02-24 08:57:38 +00:00
Patrick Parker
b1e102291a make the variables config a private member of game_state
(this is a first step towards lazy evaluation of auto-stored units)

fix error in [store_starting_locations]
2007-02-24 05:02:16 +00:00
Patrick Parker
402c8e4c93 added an int_to_color() utility function 2007-02-24 04:58:31 +00:00
Patrick Parker
70a0145bd1 fix memory leak in config::merge_children
remove unused function detach_children
2007-02-24 04:55:58 +00:00
Mark de Wever
efff6c5c77 the visibility icon of an unit is now properly updated (bug #8107)
Note this causes extra call to the slow invisible state retrieval 
of a unit, I want to look at caching the state later.
2007-02-24 00:51:20 +00:00
Mark de Wever
5f6a543ae4 [unstore_unit] can now try to level a unit and does so by default (bug #7426) 2007-02-23 20:08:13 +00:00
Mark de Wever
f8b0d3f7ca if a unit gains enough XP to gain 2 levels this will be done directly
NOTE there is a protection against insane XP amount which might cause
a unit to enter an level loop.
2007-02-23 20:02:09 +00:00
Mark de Wever
19be24b40d avoid halos on items being shown when the shroud is active.
Note the fix is a bit of a kludge so if somebody has a cleaner
solution, please make it so.  Changelog entry will follow, this fixes
bug #8523
2007-02-22 20:31:06 +00:00
Mark de Wever
50c3115464 fixed some compiler warnings, thanks to vonHalenbach-de for pointing them out 2007-02-21 20:17:57 +00:00
Mark de Wever
15f44c537c small code cleanup 2007-02-21 18:24:54 +00:00
Karol Nowak
31a81e8741 Added consts, removed one unused parameter from read_game_cfg 2007-02-21 03:44:29 +00:00
Martin Renold
4464dbb41b call invalidate_all() on side change during replay 2007-02-20 23:11:08 +00:00
Martin Renold
8567480a7b invalidate_all at tod change, plus add some INFO logging 2007-02-20 22:11:34 +00:00
Karol Nowak
cfaf73bf6a Bring back the "beg button" in the tiny gui mode 2007-02-20 20:12:47 +00:00
Jörg Hinrichs
3e3ca373a0 Fixes getting the gold at the start of the scenario...
...when returning to an autosave.
2007-02-20 19:43:10 +00:00
Martin Renold
e5514c3c69 removing an unused function 2007-02-20 18:52:17 +00:00
Martin Renold
1b4a5792bd add display updates and invalidate_all in some places
fixes bug #7131
2007-02-20 16:40:43 +00:00
Martin Renold
9ffaa4d8a3 call invalidate_all() when the game starts instead at each nop scroll
this is a better fix than 2007-02-17T12:13:39Z!martinxyz@gmx.ch; nop scroll happens after
every hit, causing clumsy fight animations at high resolution
2007-02-20 11:54:02 +00:00
Benoît Timbert
e3eb9857fc [modify_side]: display the correct side number in the console message 2007-02-20 10:20:15 +00:00
Patrick Parker
4656f4c5a6 use a team's mid-color for speaker name in mp chat,
not the team's map-marking color
2007-02-20 05:24:57 +00:00
Patrick Parker
afa2451031 remove redundant parent class 2007-02-20 04:06:34 +00:00
Patrick Parker
172228645f fix more struct/class conflicts 2007-02-20 04:04:01 +00:00
Patrick Parker
fcbfcfa74e remove unused local variable 2007-02-20 04:01:59 +00:00
Patrick Parker
9bc59c414f fix an ambiguous STL <type> specification 2007-02-20 03:42:05 +00:00
Patrick Parker
bc5e45d30a remove struct/class conflict 2007-02-20 03:40:45 +00:00
Patrick Parker
55b8dca5dc fix checkbutton size calculation for editor palettes 2007-02-20 03:39:55 +00:00
Martin Renold
dff1d0a84d remove drawSkips_ 2007-02-19 20:46:30 +00:00
Martin Renold
1be17be033 remove buggy draw_skips code; it did not actually skip draws, which is fine 2007-02-19 20:44:30 +00:00
Elias Pschernig
e7aaa0f1dc At the request of zookeeper, removed the hardcoded credits...
...(they are now in about.cfg).
2007-02-19 17:39:54 +00:00
Jérémy Rosen
3e51945fc6 missiles take unit_height_adjust into account 2007-02-19 09:47:18 +00:00
Jérémy Rosen
84f2afbfbb completely rewrote WML local variables, it should work correctly now 2007-02-19 09:07:10 +00:00
Martin Renold
558418b655 Cache unit visibility in the pathfinder.
The performance problem is not completely solved: unit::invisible
(which spends CPU in unit::matches_filter) is also called when drawing.

If it is cached there instead, this commit can be reverted.
2007-02-18 22:14:00 +00:00
Martin Renold
2c65b25cbb print an error when an alias loop is detected...
...instead of silently wasting CPU cycles
2007-02-18 21:58:11 +00:00
Mark de Wever
bf14c1fba3 made the files a bit more readable 2007-02-18 16:47:15 +00:00
Mark de Wever
0dac1f5a4e fixed the AI getting 'stuck' if no village reachable (bug #7215) 2007-02-18 16:07:56 +00:00
Thomas Baumhauer
8d5e183d8e Showing the team a side belongs to in the status table. 2007-02-18 14:16:47 +00:00
Martin Renold
c5a97542fa do not copy all visible units at every mouse motion
this fixes a performance annoyance I was seeing

it also cleans up a code duplications and double-checking
2007-02-18 10:13:42 +00:00
Thomas Baumhauer
21e3311c80 Adding the the ability of passing a conditional statement...
...in the [option] child of [message] if show_always=no to show this
option only if the statement is passed.
2007-02-18 10:05:04 +00:00
Martin Renold
31a280c108 revert 2007-02-17T16:39:53Z!martinxyz@gmx.ch (idling 10 times rarer):
should be not-so-rare for testing

frequency can be reduced via WML
2007-02-18 08:52:03 +00:00
Patrick Parker
c1369d9ae0 show full username at bottom of MP Lobby when moused over userlist 2007-02-18 06:03:43 +00:00
Karol Nowak
971198b79e Remove gp2x-specific code from trunk. 2007-02-18 01:09:16 +00:00
Karol Nowak
f3aca1ad07 Remove gp2x.cpp and gp2x.hpp from Makefile.am 2007-02-17 23:51:29 +00:00
Mark de Wever
30b103bbd4 removed code which had zero effect 2007-02-17 19:22:45 +00:00