Commit graph

23932 commits

Author SHA1 Message Date
Severin Glöckner
848eb46867 better freetype check
When specifying a prefix to freetype, the check was always passing.
This removes the check, allowing to compile without specifing the option.

Adds an alternative check for freetype.
2018-12-27 23:09:40 +01:00
Severin Glöckner
3cc8ddb5a2 use pkg-config instead freetype-config
freetype-config has been removed from freetype earlier this year

This allows compiling with at least gcc 4.3
gcc 4.9 doesn't work, nor does 4.5 (due to different reasons though)
2018-12-23 20:07:55 +01:00
Severin Glöckner
746c060d2d add missing gitignore
kind of pointless nowadays, but at least it keeps the output of git status clean
2018-11-27 02:27:54 +01:00
Ignacio R. Morelle
59d29f7628 website: Delete tree, it's now split to a different repository 2013-10-03 05:35:23 -03:00
Guillaume Melquiond
c096793f08 Avoided usage of forward incompatible test. (Fix for bug #16693.) 2013-09-26 06:17:29 -03:00
Ignacio R. Morelle
0876995096 configure: Don't require game-specific cruft when using --disable-game
campaignd doesn't really need SDL_image, SDL_mixer, Ogg Vorbis or PNG
support, or freetype.
2013-09-26 06:17:29 -03:00
Groggy Dice
dafc9a5597 update changelog with wmllint bugfixes 2013-07-21 20:27:17 -04:00
Groggy Dice
746ac09b95 move upconversion of ancient abilities ahead of lifting [frame] to fix problem of weapon specials appearing after [frame] sequence
After my last change, I noticed a puzzling failure by wmllint to convert a weapon special. This special was among some attributes that followed the [frame] sequence. It seems that Python does not wait for the earlier code block to complete before running the new one, and those lines aren't passed through the new block because they've been deleted and stashed in 'postframe'. When they're spewed back out, the new block has already passed those lines by.

I was relieved to find that this was not an issue introduced by my change, but an existing one. When I ran the original wmllint on the file, I found that the special= line got deleted, without being replaced by the [special] tags and macro. The latter is supposed to appear when wmllint hits the [/attack] tag, but never triggers because [/attack] has been changed to [/attack_anim].

Moving this code block up, so that abilities and specials are transformed before the [frame] lift (and 'postframe' stash), appeared to fix the problem. Hopefully, it won't cause a new on to show up.
2013-07-14 21:22:56 -04:00
Groggy Dice
f52d3341cb fix the lifting of attack [frame]s to [attack_anim]
This code block was actually producing some horrendous output, because key values were not reset to defaults at the closing [/attack] tag, even though many units have more than one attack. Also, the conversion was done when the first [frame] tag was encountered, although most authors put the [sound] block after [frame]s. So, what would typically happen is this:

* The first attack would be converted, usually without a soundpath. If there were any attributes after the [frame] sequence, the result would be non-functional, as the comment introducing this wmllint block warned (and wmllint would crash with an assertion error if "name=" happened to be one of them).

* Subsequent attacks would be converted, inheriting the sound and [attack_filter] from the soundpath and attackname of the *first* attack.

To fix these issues, I did the following:

* In order to do the conversion at a later stage, after the soundpath would normally have been picked up, the variable 'converting' was changed from a 0/1 value to a line index position.

* This enables the opportunity to move post-[frame] lines, for which purpose the new variables in_frame and postframe are created. When encountered, these lines are deleted and appended to postframe.

* When we get to [/attack], we still look to see if we are converting. If so, we go ahead with the replacement of lines[i], before the index position gets changed. Then we carry out the conversion that was originally carried out at the first [frame], using lines[converting] to do it at the same place.

* The lines in postframe are fed back in reverse order before the new closing [/attack] tag.

* Values are cleared to defaults, ready for the next [attack].

* It is no longer true that the frame sequence has to go last in [attack], so that part of the comment can be deleted.
2013-07-14 21:22:32 -04:00
Groggy Dice
7fe4536910 bugfix insertion of attack's description= key
First, the newline is added to "description = " rather than "new_line = ". But description was only changed if it didn't begin with a quotemark, meaning that those that *did* start with a quote weren't getting a newline.

Second, new_line was supposed to inherit indentation through "leader(syntactic)", but the line had already been stripped before "syntactic", in "fields = ".
2013-07-14 21:21:42 -04:00
Groggy Dice
7ac9e55a8d bugfix newline problems in output
I had noticed that the line replacing the get_hit_sound with DEFENSE_ANIM didn't have a newline, but assumed that it was part of 'comment'. Nope!

There are also two lines where a misplaced quotation mark led to an extraneous space being added to the end of a line.
2013-07-14 21:19:32 -04:00
Groggy Dice
441854d2ac enable wmllint to convert more old abilities and specials
I noticed that there were some additional weapon specials (marksman) and abilities (nightstalk, steadfast) that also had macros. I also saw examples of ability= keys that had comma-separated multiple values.
2013-07-14 21:09:03 -04:00
Groggy Dice
4889ca1cca fix typo that prevented firststrike from being upconverted
r -> s and no more "Don't know how to convert 'firststrike'" messages.
2013-07-14 21:06:31 -04:00
Groggy Dice
1fe15fe6e9 animation conversion: add in_variation to list of variables defined at start as False
All of these variables are again defined as False when [unit] is in the line, but in_variation was missing from this earlier list. This caused wmllint to crash with an UnboundLocalError on a page of (UtBS) Kaleh-style macros that had no [unit] tag.
2013-07-14 21:06:14 -04:00
Groggy Dice
02c52deef8 skip further operations if the value is zero-length
This came to my attention because of a Dark Elves scenario with a 'description=' key that was left blank for the value, crashing wmllint with an index error. More broadly, however, the operations in this section are pointless when there is no value.
2013-07-14 21:04:52 -04:00
Groggy Dice
28f4682779 updated changelog: mostly wmllint 2013-07-01 19:48:16 -04:00
Groggy Dice
8674bd3f8a clean up get_hit_sound messages
The first message has a couple of problems. Technically, get_hit_sound is not a tag, and there is a stray quote mark at the end. Also, i+1 points to the line number of the [/unit] tag, which is not particularly helpful information. This can be changed to point to the line of the get_hit_sound attribute.

For the second message, the %d get_hit_sound is an index position, so +1 for the line number.
2013-07-01 19:47:45 -04:00
Groggy Dice
f5d3846748 print second half of "duplicated attack" warning to stderr also
This warning could become confusing if split up by stdout or stderr being redirected.
2013-07-01 17:35:07 -04:00
Groggy Dice
0b7c7033e3 THoT 06: backport fix for "event=time over" to "name="
As long as I have 1.4 checked out, I might as well fix this bug so that any remaining 1.4 players can see the 1337 writing that ESR talks about in his Campaign How-To... lol
2013-07-01 17:34:50 -04:00
Groggy Dice
1653b9f8c3 Correct "AMLA TOUGH" to "AMLA_TOUGH"
Admittedly, only a couple of campaigns have this error, but it keeps {AMLA_TOUGH 3} from being updated to {AMLA_DEFAULT}.
2013-07-01 17:32:46 -04:00
Groggy Dice
fa43e3688b insert rstrip() to fix wmllint-crashing assumption that unit files are using Unix newlines
In Linux, many 1.2 unit files would crash wmllint, with tracebacks pointing to the "assert male/female_end != -1" line. Male/female_end's value is set to -1, and when it does not meet the condition for converting to i (line index position), the assert statement fails. The "assert male_end" error crashes files with gender=male, or no gender= key (thus defaulting to male). The "assert female_end" error is the female counterpart, and also covers units with both genders.

I found that after commenting out these assert statements, wmllint no longer barfed on those files. Studying the problem for this commit, however, I saw that "endswith()" included a newline. Could it simply be choking on DOS carriage returns? Doing a dryrun in Windows, which defaults to universal newlines support, I did not get the crashes. Change to binary mode, the crashes returned. Insert rstrip() and delete the newlines, and the crashes stop!
2013-06-30 22:03:54 -04:00
Groggy Dice
caf6587318 wmllint: update old "portraits/core/" paths to "portraits/"
These portraits were moved prior to 1.1.9. That was before ESR joined Wesnoth development in April 2007, which may explain why wmllint didn't cover this change. Nevertheless, even many 1.2 campaigns still have the old "portraits/core" filepaths.

These old paths also keep post-1.4 wmllint from updating portrait paths to their current location, after they were moved again in 1.5.9.
2013-06-30 22:03:32 -04:00
Elvish_Hunter
12295c9e90 wmllint, wmlscope and wmlindent: fixed bug caused by Windows' command prompt appending double quotes to arguments
This is a backport of Elvish Hunter's 2013-02-23T13:04:12Z fix to 1.11.
2013-06-30 22:02:44 -04:00
Groggy Dice
d51c4b870b backport: removal of files on Windows before --revert and conversion file rename
Windows won't allow a rename to overwrite an existing file (without Error 183, file already exists).
2013-06-30 22:01:09 -04:00
Gunter Labes
230ebdaf44 fixed tarball creation 2009-09-09 11:28:46 +00:00
Gunter Labes
182da61ef2 cache the ignores and friends list 2009-09-09 11:28:36 +00:00
Gunter Labes
e2b087cec7 send lobby diffs separately;...
...fixes bug #13099: MP lobby player list becomes inaccurate over time
2009-03-03 09:38:03 +00:00
Daniel Franke
5e867e21f9 Reword release notes after Rhonda cleared me up about how CVEs work...
...(1.4 branch).
2009-02-24 10:33:54 +00:00
Daniel Franke
dd1d5064e3 Remove Python AI support, addressing CVE-2009-0367 2009-02-24 06:53:37 +00:00
Gunter Labes
98b9afca18 create the fifo group accessible (instead of only user accessible) 2009-02-17 19:26:11 +00:00
Gunter Labes
89fc59cff6 do the random map generation before we send next scenario data out...
...so it's in sync; fixed bug #12896: Map generator does not sync
between clients when advancing in MP campaigns
2009-02-09 13:54:57 +00:00
Benoît Timbert
b3cbc45069 Add some more modes (matching the trunk ones) 2009-02-07 17:24:31 +00:00
Benoît Timbert
5c2fc6d051 Apply patch #1108: Additional screenmodes for when SDL can't guess them 2009-02-07 17:06:46 +00:00
Benoît Timbert
4dd7159b5d Apply patch #1107 : Minimum stack cookie on AmigaOS4 to prevent stack overflow 2009-02-07 16:15:55 +00:00
Gunter Labes
3a10620fea properly consider players that have more than one side
(cherry picked from commit 2009-02-01T11:46:41Z!soliton@wesnoth.org)
2009-02-01 12:42:33 +00:00
Gunter Labes
029a6d1921 refactored code in server.cpp 2009-02-01 12:42:07 +00:00
Gunter Labes
14b5bb32ba send a server message to the client when invalid WML is received 2009-02-01 12:41:58 +00:00
Gunter Labes
1a69da5b57 increase allowed nesting level to what the client allows (1000) 2009-02-01 12:41:47 +00:00
Gunter Labes
6e07c7deac report error messages with simple_wml 2009-02-01 12:41:42 +00:00
Gunter Labes
5209493bc5 made simple WML ordered properly 2009-02-01 12:41:34 +00:00
Benoît Timbert
f07b02eb6e French translation update 2009-01-25 20:46:00 +00:00
Benoît Timbert
509bbec686 French translation update 2009-01-21 19:51:05 +00:00
Gunter Labes
04aa0b8f58 allow kick reasons 2009-01-15 22:01:20 +00:00
Gunter Labes
ac12ab186a don't check observers against observers for the same IP 2009-01-15 22:01:09 +00:00
Lari Nieminen
405499d2f0 Balancing for "Gathering Materials". 2009-01-14 10:30:23 +00:00
Thomas Baumhauer
0060d68021 backporting 2009-01-10T11:37:02Z!thomas.baumhauer@gmail.com (player list scrolling fix) 2009-01-10 11:38:00 +00:00
Thomas Baumhauer
c0850701a3 backporting 2009-01-05T21:48:12Z!thomas.baumhauer@gmail.com per Soliton's request 2009-01-06 10:44:10 +00:00
Gunter Labes
beb357a62f send a lobby update on kicks/bans 2009-01-05 02:39:41 +00:00
Gunter Labes
6866d48897 display the number of games not of game termination types 2009-01-04 17:51:19 +00:00
Nobuhito Okada
fb4a390993 updated Japanese translation (contributions from http://wikiwiki.jp/wesnoth/) 2009-01-04 15:48:09 +00:00