Hans Joachim Gurt
3f1b01fd17
doxygen, comments
2007-09-08 03:31:35 +00:00
Patrick Parker
adca06db54
remove the FXME, since it was fixed
2007-09-08 02:30:22 +00:00
Patrick Parker
37af5a5b63
a new and improved implementation for wildcard_string_match()
2007-09-08 02:29:15 +00:00
Hans Joachim Gurt
78e94b5bd0
Doxygen, comment, Contrast/colors for stats-dialog and unit_preview_pane.
2007-09-08 02:11:52 +00:00
Patrick Parker
d4f91825f1
comparing a stringstream to a NULL pointer doesn't make much sense...
2007-09-08 01:47:45 +00:00
Patrick Parker
997a93c0db
this may fix the FIXME: 'wordw' does not match '*word*'
2007-09-07 23:39:47 +00:00
Ali El Gariani
344cb4fa00
In help, use reference for unit_type, this make the units parsing instantaneous
...
...and make the global help load ~3 times faster here (with all units).
(the bottleneck is now again the bad unit_type.attacks(). So I will probably
finish to clean it)
2007-09-07 15:09:31 +00:00
Ali El Gariani
5d202993db
In help, cleaning of the functions sorting unit_type
...
(simplify and remove dead code)
2007-09-07 15:02:29 +00:00
Eric S. Raymond
6e9c5f56c8
Simpler formatting string for end-of-scenario gold, at Ivanovic's request.
2007-09-07 13:13:41 +00:00
Gunter Labes
f21e9686c5
refactor the weird $noun usage
...
this should make it easier for translators
2007-09-07 11:50:17 +00:00
Ali El Gariani
40d84538b2
There was a forced 500ms delay after each AI side turn, which seems excessive
...
...especially when playing against several AI. I don't think that there is a
reason fot this, but if there is a hidden one, we can search a better fix.
For the moment change it to 100ms, but maybe later kill it.
2007-09-07 06:56:32 +00:00
Ali El Gariani
92c2eaad22
Quick fix to a design flaw in attack_type code impacting performance:
...
This make the help opens ~5 times faster and speed up some AI operations.
(the creation of the "little" attack_type object also generated a lot of
animations data, which are useless for non-display functions (AI, help...)
And these attack_type are not cached in unit_type, like we do for unit)
2007-09-07 06:46:25 +00:00
Gunter Labes
0af681766f
nicer logging and error reporting
2007-09-07 06:32:48 +00:00
Gunter Labes
422a9fb6ee
add a missing "\n" to a debug output
2007-09-06 15:45:05 +00:00
Gunter Labes
6d928ed077
rename "Join Game" to "Connect to Host/Server"
...
add some error messages to std::cerr
2007-09-06 15:01:55 +00:00
Gunter Labes
934dce11fe
add a FIXME comment
2007-09-06 14:25:05 +00:00
Gunter Labes
a21313cb0f
some more "campaign" -> "add-on" replacement
2007-09-06 14:23:08 +00:00
Mark de Wever
88b3314cb1
Fixes an encoding change introduced in 2007-09-05T04:00:36Z!alinkmaze@gmail.com.
2007-09-05 19:06:01 +00:00
Mark de Wever
b12ffd8994
C-style cast cleanup.
2007-09-05 17:06:38 +00:00
Mark de Wever
e3627ae789
C-style cast cleanup.
2007-09-05 17:01:50 +00:00
Mark de Wever
e305aca25e
C-style cast cleanup.
2007-09-05 17:00:32 +00:00
Mark de Wever
3221e3beab
C-style cast cleanup.
2007-09-05 16:59:03 +00:00
Mark de Wever
ea76140008
C-style cast cleanup.
2007-09-05 16:57:46 +00:00
Ali El Gariani
5021440227
Alphabetic sorting races sub-sections in help
...
(Miscellaneous is on top because it's currently the only one capitalized)
2007-09-05 06:46:25 +00:00
Ali El Gariani
1f92d97c1d
use the "name" key of [race] as title of race sub-sections in help
...
unit type without race (no race key or no related [race]) uses now the
translatable _("race^Miscellaneous"), as suggested by Soliton
Any other suggestion must be done faster than our translators.
2007-09-05 06:12:39 +00:00
Ali El Gariani
304e997edd
Give an "id" key to [race] (which also still have the "name" key)
...
The data is not yet adapted, and currently used as test-case to the transition
system which create an id from name if id is missing
The help also still use id and not name (but they are currently identical)
2007-09-05 04:00:36 +00:00
Patrick Parker
a7b7e35add
now radius expansion is handled last in Standard Location Filters;
...
previously it was handled last except before [and], [or], and [not]
note: this allows more advanced uses of the radius expansion feature
2007-09-05 03:55:02 +00:00
Patrick Parker
cb29743eab
rename [filter_adjacent] in SLF to [filter_adjacent_location]
...
(to avoid confusion)
2007-09-05 00:01:40 +00:00
Patrick Parker
49106110f3
add another empty string check for directory names
...
bring the indentation back to the codebase style
2007-09-04 23:48:43 +00:00
Patrick Parker
aec4ab8f94
User-made Campaign translations now work again for Windows (bug #9926 )
2007-09-04 23:29:39 +00:00
Patrick Parker
2ec6f3852d
a second attempt to silence the harmless signed/unsigned comparison,
...
this time making it even uglier-looking
2007-09-04 21:46:38 +00:00
Patrick Parker
a919f6943f
silence some harmless signed/unsigned comparisons
2007-09-04 21:19:39 +00:00
Patrick Parker
67686d6d9a
prevent the adjacent location filter cache from accessing invalid vector index
2007-09-04 04:19:28 +00:00
Patrick Parker
81ec992c38
now [filter_adjacent] is supported in SLF
...
clean up the [filter_adjacent] code in SUF
2007-09-04 03:39:48 +00:00
Patrick Parker
d15ba7bca8
add a utility for parsing multiple ranges
2007-09-04 03:01:44 +00:00
Gunter Labes
65b14255c6
revert 2007-09-04T01:47:29Z!patrick_x99@hotmail.com on Sapient's request
2007-09-04 02:00:03 +00:00
Patrick Parker
6487762756
reorganize the enum for gamemap::location::DIRECTION so that it is more useful
2007-09-04 01:47:29 +00:00
Eric S. Raymond
731ca25c34
Make the save performance message indicate which file has been saved.
2007-09-04 01:39:17 +00:00
Patrick Parker
6020135476
a minus sign in front of a cardinal direction now reverses it ("-s"="n")
2007-09-04 01:34:09 +00:00
Ali El Gariani
ce9701c318
Make ~TC robust as ~RC:
...
remove the spaces in parameters because some people use ~TC(1, magenta)
We also generally need robust image-paths modifications
because any add-on can (badly) use it in the add-on list
2007-09-03 20:33:30 +00:00
Ali El Gariani
7a9e9dc840
Add an end-of-line to the "Invalid team color" error message
2007-09-03 20:11:27 +00:00
Ali El Gariani
7367ec3bb1
Cleaner clipping of unit at the border of the map
...
Maybe fix a bug reported by uso with a fencer animation there
(can't reproduce it, so I don't know if the bug existed before of after this)
2007-09-03 20:06:09 +00:00
Ali El Gariani
bab30040d8
~TC was incompletely restored after the adhesion storm
...
Now initialize and reset TC in titlescreen for add-ons and campaigns icons
(previously was only initialized after having played a game)
This also restore coloring for case like ~TC(not a playing side)
2007-09-03 20:02:28 +00:00
Patrick Parker
79b70a582d
this probably fixes bug #9914 "growth ability of ghast does not work"
2007-09-03 17:34:12 +00:00
Patrick Parker
1e179497d5
fix an iterator redefinition...
...
...and rename a ton of variables to stop this trend (hopefully)
2007-09-03 06:12:06 +00:00
Ali El Gariani
df22f53cb5
Organize units list in races sub-sections.
...
Seems to work fine but it's still work-in-progress. Things planned:
- Fix alphabetical sorting (for translated title sections)
- Capitalize race's names? And if yes, in cfg or by c++ ?
- choose a "no race" name when the race=... or [race] is missing
- Optimize and harmonize (maybe a slight overhead at the first help invocation)
2007-09-03 03:53:27 +00:00
Ali El Gariani
6b4b8b23f8
Continue to clean the standard output:
...
Remove "started game: SDL_GetTicks()"
and the isplated "32" of (whatever bits-per-pixel you use)
other messages (normal or errors) alread give you the bpp used
2007-09-02 19:49:50 +00:00
uso
e2b5c14780
only highlight 'Use map settings' in green if we know the scenario
...
and it's not remotely modified (local and remote hashes are identical)
2007-09-02 17:31:49 +00:00
Ali El Gariani
447656d09a
Other fog optimization: on a map with shroud but without fog,
...
remove a redundant evaluation of units sight for refreshing an inexistent fog
(This change doesn't affect shroud and sighted event)
2007-09-02 05:50:04 +00:00
Ali El Gariani
db4c70b101
Remove a debug message ( "missed" ), because it flooded a little
...
Boucman, watch out your debug line is gone, some anims are still "missed",
(whatever it's mean).
2007-09-02 05:28:24 +00:00