Commit Graph

33137 Commits

Author SHA1 Message Date
Tomasz Śniatowski
e9ef486b9c set svn eol style on vc9 project files...
...to hopefully make git behave nicer with them
2009-05-15 08:37:03 +01:00
Eric S. Raymond
33a61c6a10 Make python tools use hashlib instead of the deprecated md5 module. 2009-05-15 02:29:34 +00:00
Eric S. Raymond
3ce4197b98 It's silly to let a side recruit Dwarvish Ulfserkers...
...but no other kind of dwarf.
2009-05-15 01:44:48 +00:00
Iurii Chernyi
b24ca9f8b7 Added a content-addressable-table of unit states...
...which are boolean and are used by the game. This allows O(1) lookup
of these unit states, and give ~ +10% to AI speed (more with --nogui),
due to get_state("slowed") replaced with get_state(STATE_SLOWED) in
unit::movement_cost calculation which is heavily used by the
pathfinding. This does the improvement described in Bug #13520
2009-05-14 23:11:34 +00:00
Mark de Wever
ffdbcda976 Reverted 2009-05-13T22:46:48Z!terraninfo@terraninfo.net, the code now works due to 2009-05-14T18:08:45Z!koraq@xs4all.nl.
Tested and bug #13521 no longer occurs with this code.
2009-05-14 18:20:00 +00:00
Mark de Wever
0d732da346 Let twml_message inherit from tdialog.
The inheritance of tmessage doesn't really work since the dialogs are too
different. Bug 13521 was caused by this inheritance.
2009-05-14 18:08:45 +00:00
Guillaume Melquiond
124bd04416 Typo (???) 2009-05-14 11:58:46 +00:00
Nils Kneuper
d359e7f938 updated Chinese (Traditional) and Russian translation 2009-05-14 09:05:09 +00:00
Ali El Gariani
8bdbf0727b Fix first A* search on a new map runs on incorrectly initialized nodes. 2009-05-14 01:08:28 +00:00
Iurii Chernyi
a82a901125 Reverted 2009-05-13T17:57:34Z!koraq@xs4all.nl, as it caused Bug #13521 2009-05-13 22:46:48 +00:00
Mark de Wever
59b4f7a094 The tmessage dialog can now show up to 4 buttons. 2009-05-13 17:57:34 +00:00
Lari Nieminen
c638cc6727 Committed Tyler Johnson's new track as requested by West. 2009-05-13 17:55:06 +00:00
Elias Pschernig
b446d3c102 Fixed bug #13516 which I had introduced...
...with the previous commit to the Python parser.
2009-05-13 16:01:41 +00:00
Sergey Popov
fc2e87763f Made use of BOOST_CHECK_EXCEPTION in test_lexical_cast. 2009-05-13 12:07:24 +00:00
Nils Kneuper
19346290cd updated Chinese (Traditional) translation 2009-05-13 10:52:11 +00:00
Ali El Gariani
a9adec2fca Optimize terrain rendering.
An old option allow to use Time-of-Day terrain mask, also affected by
local ToD (like cavern).

But the used ToD function uselessly calculated lawful bonus given by
adjacent units having the illuminates ability, which was not cheap and
done for each hex. Fixed now, no visible change.
2009-05-13 00:37:32 +00:00
Mark de Wever
f0f01da15c Remove an unused function. 2009-05-12 21:06:06 +00:00
Mark de Wever
67726dd706 Fix comment, which was incorrect. 2009-05-12 21:06:01 +00:00
Mark de Wever
4e50babdba Strip trailing whitespace. 2009-05-12 21:05:45 +00:00
Lari Nieminen
c0b612a3cd Added Added the new orcish villages and forts to SotBE maps. 2009-05-12 20:53:41 +00:00
Richard Kettering
28d82860fe Fixed some stray pixels found by a contributor. 2009-05-12 20:39:52 +00:00
Lari Nieminen
cf41b7a490 Added the new orcish villages and forts to DiD maps. 2009-05-12 20:10:36 +00:00
Mark de Wever
0029800ea0 Fixed UTF-8 handling in the password textbox.
A multi-character in the textbox had its length determined with the
number of characters instead of number of UTF-8 glyphs.
2009-05-12 19:51:02 +00:00
Ali El Gariani
dbb3d626e9 Revert 2009-05-12T17:23:46Z!alinkmaze@gmail.com and rename tile_on_screen to tile_fully_on_screen 2009-05-12 19:49:02 +00:00
Lari Nieminen
a9022dfb3b Changed the snowfall in Northern Winter to work...
...so that some snow now falls every turn on random hexes.
2009-05-12 19:29:54 +00:00
Ali El Gariani
74b4880b97 New debug tool to analyze invalidation performance:
When fps and debug are activated, also show the mean number of drawn
hexes by frame

If some hexes are invalidated but not drawn (off-screen anims) also
show this number between parenthesis

Also changed "30fps" to "fps: 30" for better readability of these
debug info when around 10
2009-05-12 18:56:07 +00:00
Sergey Popov
66c62d5dd1 Use BOOST_CHECK_EQUAL instead of plain BOOST_CHECK in test_lexical_cast_result. 2009-05-12 18:43:20 +00:00
Sergey Popov
2cc005b200 Typo fix. 2009-05-12 18:43:01 +00:00
Eric S. Raymond
c2d3ce0fb3 Make the Cave Serpent visible. 2009-05-12 18:16:26 +00:00
Sergey Popov
96c66d2b72 Made use of boost.test's template test case in test_lexical_cast. 2009-05-12 18:12:57 +00:00
Ali El Gariani
430ae5fbee Fix imprecise tile_on_screen function
possibly improving the scrolling tracking of moving units near the
south/east edges of the screen
2009-05-12 17:23:46 +00:00
Ali El Gariani
e5029c4b60 Remove bad broken code (typo in wml key and wrong tag hierarchy)
It was useless and a framerate killer if working

(each frame, refresh adjacent hexes of units having ability affecting
adjacent)
2009-05-12 16:28:37 +00:00
Lari Nieminen
5e2dcecef6 Fixed a typo breaking [switch]. 2009-05-12 10:42:40 +00:00
Nils Kneuper
4ca0e29325 some tiny corrections to about...
...(replacing tabs by spaces, removing spaces from emailaddy, ...)
2009-05-12 10:04:14 +00:00
Nils Kneuper
4dca6c0fbc updated list of Russian translators 2009-05-12 09:40:05 +00:00
Nils Kneuper
98e8b57f1c pot-update
regenerate doc files
2009-05-12 09:31:23 +00:00
Nils Kneuper
ab9fb40479 updated Russian translation 2009-05-12 09:14:52 +00:00
Lari Nieminen
aaa50ef26d Added the new orcish villages and forts to HttT maps. 2009-05-12 08:50:25 +00:00
Lari Nieminen
3609fe71e7 Added hill and snow hill variations of the orcish village terrain. 2009-05-12 08:07:07 +00:00
Lari Nieminen
806c26f6b8 Added doofus-01 as a (third-tier) art contributor. 2009-05-12 07:54:45 +00:00
Lari Nieminen
567f442506 Added doofus-01's snowy orcish villages...
...as well as the fourth orcish village variation.
2009-05-12 07:46:47 +00:00
Lari Nieminen
73a06465c7 Removed a leftover comment. 2009-05-12 07:33:02 +00:00
Lari Nieminen
0c7a347c37 Added doofus-01's new orcish fort. 2009-05-12 07:20:38 +00:00
Guillaume Melquiond
653b15d319 Patch reverted by 2009-05-09T23:01:04Z!jeremy.rosen@enst-bretagne.fr is still a +25% AI speedup...
...on my computer (and more on slower computers). Reapplying.
2009-05-12 06:47:33 +00:00
Iurii Chernyi
ac02ec159f Skip delay(20) in play_slice during ai_interact,
...do not redraw screen twice during ai_interact.
2009-05-11 23:29:26 +00:00
Jérémy Rosen
f291c96c1b various animation optimisation...
...(cache result of overlap calculation + better initialization of
image::locator)
2009-05-11 21:04:37 +00:00
Eric S. Raymond
a442476f0c Typo fixes, and an corresponding update to pofix.py. 2009-05-11 20:17:41 +00:00
Ali El Gariani
125f186aaa Allow to have attack with damage=0...
(rounding of other attacks continue to be >0)

This also fix round_damage() which was supposed to round towards
base_damage, but was incorrect for 2 cases: when dividing by 1 (D/1
give D-1, but currently not used) and when base_damage was 0.
2009-05-11 20:04:00 +00:00
Nils Kneuper
2defaf7211 updated Chinese (Traditional) and Slovak translation 2009-05-11 19:02:52 +00:00
Ali El Gariani
b380b2970f Add a 'damage' key for [effect] applying to attack.
Support standard ranges like '1-10,20-30,42'
2009-05-11 18:03:30 +00:00