Commit Graph

21226 Commits

Author SHA1 Message Date
Ali El Gariani
436ce54570 Various optimizations of the pathfinding (helps fog/shroud and AI moves)
The pathfinding part is now few times faster and it seems sensible for
big army
2007-12-08 02:40:08 +00:00
Ali El Gariani
90451b8e2c Optimization of pathfinding when clearing fog/shroud.
(bitwise operation don't do short-circuit evaluation, and the useless
call was the most expensive operation of this loop)

We can add this to the list:"Performance are often killed by
compilable 1-character typo" (in fact, I commit this change separately
just for that ;p ).
2007-12-08 02:36:13 +00:00
Lari Nieminen
5fd5c96505 Fixed a few typos. 2007-12-07 22:49:16 +00:00
Lari Nieminen
841e945f66 Added the .wav's of the bat and troll sounds. 2007-12-07 22:31:50 +00:00
Lari Nieminen
1cd73c0561 Converted bat hit and troll sounds to .ogg. 2007-12-07 22:30:40 +00:00
Lari Nieminen
27d002a989 Added the .wav's of the ogre sounds to the resources branch. 2007-12-07 21:51:52 +00:00
Benoît Timbert
3f24628e58 French translation update 2007-12-07 21:16:06 +00:00
Benoît Timbert
4519ca0ec8 French translation update 2007-12-07 20:53:12 +00:00
Benoît Timbert
410d1dafc1 Just another new french translator 2007-12-07 20:36:58 +00:00
Mark de Wever
180681cf0a Removed the wrapper function network::queue_data() with network::send_data()
and fixed all callers.
2007-12-07 19:25:12 +00:00
Mark de Wever
35d39a456d Remove some unneeded #includes. 2007-12-07 19:03:29 +00:00
Mark de Wever
d9d4be29e9 Make sure all members are initialized in the constructor. 2007-12-07 19:02:51 +00:00
Lari Nieminen
cf05731e14 New ogre sounds (by woodwizzle). 2007-12-07 19:00:23 +00:00
David Philippi
dfc1d6df40 danish translation update 2007-12-07 18:48:16 +00:00
Eric S. Raymond
631a33d170 Address bug #10419.
Having reviewed the way it's used, I don't believe using it will make Wesnoth a 
derivative work of boost.m4, so v3 terms will not propagate to the 
rest of the code.  (Obligatory note: I am not a lawyer.)

This is an issue we'll face again when and if autotools goes v3.
2007-12-07 16:28:11 +00:00
Mark de Wever
e23a962934 wassert -> assert 2007-12-07 16:16:17 +00:00
Lari Nieminen
82f6f2fbd8 Simplify the village capturing and counting WML of 'Peaceful Valley' a bit. 2007-12-07 12:44:59 +00:00
Eric S. Raymond
7919f2a1dd Removed extraneous leading bank lines on several maps. 2007-12-07 04:21:17 +00:00
Nils Kneuper
4ac76b8409 pot-update 2007-12-06 23:33:57 +00:00
Nils Kneuper
d2b06b4d9c correction proposed by Rhonda 2007-12-06 23:26:31 +00:00
Nils Kneuper
6c118a0020 updated Chinese translation 2007-12-06 16:57:08 +00:00
Mark de Wever
a290d1d49b Add a comment to avoid forgetting to update the manual...
...when changing the command line options.
2007-12-06 16:44:38 +00:00
Mark de Wever
ff09e1667a Added the new g(un)zip switches to the manual,
Ivanovic please review since my manpage hacking skills are
non-existant ;-)
2007-12-06 16:36:55 +00:00
Lari Nieminen
b0b48e7f17 Rewrote 'Hide and Seek', now having a wider map with randomly placed guards. 2007-12-06 16:05:13 +00:00
Lari Nieminen
acf126d2fc Removed the old HIT_MISS_SOUNDS macro in favour of the fancier new one. 2007-12-06 13:20:06 +00:00
Ali El Gariani
b1597b31fd revert my 2007-12-06T02:11:40Z!alinkmaze@gmail.com
the last configure.ac always set this flag for the game, mine was just
obsolete and I was confused by the different needs of wesnoth apps.
2007-12-06 11:06:42 +00:00
Ali El Gariani
41f04a013f Fix problem like bug #10458
(AI crash when facing unknown unit type from old savegame). Use a
WML_ASSERT as suggested by Mordante.  Display : "Unknown unit type :
Outlaw Ranger" + assert info.
2007-12-06 09:38:50 +00:00
Ali El Gariani
bac715c911 A small protection again multiple simultaneous selection clicks 2007-12-06 07:30:40 +00:00
Ali El Gariani
bc75afb216 add an ugly missing #ifdef USE_GZIP to allow compilation without the flag set
Mordante: it's just a quick fix to avoid annoying complains.
2007-12-06 02:11:40 +00:00
Ali El Gariani
4282052499 Use also the same previous STL insertion optimization for devived units
If we keep this, I will pull out these both uses in one little
function.  Also remove my previous useless check for "delete NULL"
(thanks Sapient)
2007-12-06 01:59:01 +00:00
Ali El Gariani
94c76d23d8 Remove unused (and not small) data members from the race class. 2007-12-06 00:48:24 +00:00
Ali El Gariani
a78b0f2fd8 Optimization of unit_type loading:
Really build them after the copy in their main STL-container, because
copying the full version was uselessly expensive (and STL-map do
several copies).  Seems to give good result (~3x), I plan to try to
use the idea elsewhere.
2007-12-06 00:40:34 +00:00
Lari Nieminen
919b42d35a Fix minor timing mistakes. 2007-12-05 23:51:04 +00:00
Lari Nieminen
dfa08f2835 Remove the macros and all remaining uses of FRAME_ON_SLOW and FRAME_ON_POISON. 2007-12-05 23:44:13 +00:00
Lari Nieminen
00a45887c5 Converted core units using slow to use the new slow sound macro. 2007-12-05 23:26:40 +00:00
Lari Nieminen
357b41a14a Forgot the poison sound of the direwolf rider. 2007-12-05 23:14:56 +00:00
Gunter Labes
9f015591f1 increase the ping timeout to 60s 2007-12-05 23:05:42 +00:00
Lari Nieminen
a4cafbc997 Add some new macros for greatly beautify the macroifying...
...of sounds in animations. For starters, converted all core units
using poison to use the new poison sound macro.
2007-12-05 23:02:45 +00:00
Mark de Wever
5bf97deee2 Added a todo for after 1.4 branching. 2007-12-05 20:52:40 +00:00
Mark de Wever
3c8602399f tab -> spaces 2007-12-05 20:44:10 +00:00
Gunter Labes
0f22c7c4fd move the css to the templates
make the index.html template a bit more generic
2007-12-05 20:17:09 +00:00
Gunter Labes
9e172594b2 improve the version handling 2007-12-05 20:11:13 +00:00
Mark de Wever
04852654d1 Make sure all members are initialized in the constructor. 2007-12-05 19:32:32 +00:00
Mark de Wever
085a6a1ef6 Made the requirement of gzip and boost_iostream only mandatory...
...if the game is compiled. It doesn't work properly yet since the
boost detection hasn't been added yet, once done it will work
properly.
2007-12-05 19:20:14 +00:00
Mark de Wever
22ad729bcc Added gzip write support.
Updated changelogs and other documentation about new gzip featue.

Some cosmetic cleanups.
2007-12-05 17:27:08 +00:00
Ignacio R. Morelle
80e16c3d9e update the {GENERIC_UNIT ...} macro (single player only)...
...to take advantage of the new random_gender= key.

fix some typos in the changelog
2007-12-05 17:18:52 +00:00
Lari Nieminen
dd7aaf4ae0 Removed odd race= attributes in some [side] tags. 2007-12-05 17:12:47 +00:00
Gunter Labes
38d47c1c84 check the right place for images to be colorized
bump the version
2007-12-05 16:49:11 +00:00
Gunter Labes
ec4878e58a don't continue building when an error occured 2007-12-05 16:17:33 +00:00
Nils Kneuper
4cc1c9744d updated Chinese translation 2007-12-05 16:14:05 +00:00