Commit Graph

8469 Commits (e46b08f8e1f3b7de9eb20b4a8173e0ce093986bd)

Author SHA1 Message Date
buginator c1b44daf1e Fix underflow, if a pre-built structure has part of it in water.
NOTE: since this is going on, on our mission maps, we just fix the issue, instead of
removing the item, since the item in question might be used by the scripts, and removing
it would break things.

fixes ticket:2302
(cherry picked from commit 94bedce442051a0cb1562fb0f8962c54e60e9fa3)
2010-11-13 13:56:51 -05:00
buginator 03914be31b When doing a map preview, no need to process stuff that is only useful in-game.
This speeds up the preview screen back to 2.x speeds.
(cherry picked from commit 5f42d0032a9c8dc0b4de60cbef7f9bba8b0b70f0)

Conflicts:

	src/game.c
	src/map.c
2010-11-13 13:48:18 -05:00
buginator f8517a7716 Fix another memory clobbering issue. (dereferenced pointer)
Patch Author: Safety0ff
fixes ticket:2300

Original detective work done by Ai_Tak (ticket:1656)

Signed-off-by: buginator <buginator@gna.org>
(cherry picked from commit 1a6fb8a7547f23ce2bd7af153ac839cba999e2b0)
2010-11-13 13:40:58 -05:00
buginator 0ed42c0b2d Forgot the include for f4e8221ef53c4f9af6b3f5f2af3c7e5b28c89654
(cherry picked from commit d4639fea223ab74f4953af8ee4263c2699f712e4)
2010-11-13 13:40:35 -05:00
buginator f825a85f5d CHANGELOG: Fix unit explosion color for turret
fixes ticket:2294
(cherry picked from commit f4e8221ef53c4f9af6b3f5f2af3c7e5b28c89654)

Conflicts:

	src/component.c
	src/effects.c
	src/effects.h
2010-11-13 13:40:10 -05:00
buginator b6baa8338e Actually copy the default template name
(cherry picked from commit 5132e5cace5f6e2299e4ef0b6ed9267738e28ff5)
2010-11-13 13:15:47 -05:00
Per Inge Mathisen e41fa8fbef Change savegame date description format to %x %X which is short, descriptive and locale-dependent. Patch by Emdek, closes ticket:2303 2010-11-13 13:57:15 +01:00
Per Inge Mathisen 28c1b3ea8d Run simplipie over all PIE models. This removes team colour info when tcmask is used in the model and the number of frames is 8. Also fixes some other issues found by simplipie. 2010-11-12 22:55:30 +01:00
Per Inge Mathisen 26d51104f9 simplipie: Remove old style team colour information if tcmask is used. 2010-11-12 22:23:05 +01:00
Per Inge Mathisen f4192aa462 Remove some now unnecessary texture references to stress lazy texture loading. See ticket:2304 for more info. 2010-11-12 21:32:56 +01:00
Per Inge Mathisen 9b3cf3a382 Allow you to load textures on demand, both ordinary textures and tcmask textures.There is really no reason now to list tcmask textures in the wrf files at all. You can still put a texture in the wrf to override the usual texture loaded with a model (necessary for campaign and terrain dependent base plates). Closes ticket:2304 2010-11-12 21:31:56 +01:00
Per Inge Mathisen 8d4111886b Add proper filenames to textures for models that are missing this. Required for lazy texture loading, see ticket:2304 2010-11-12 21:30:22 +01:00
Per Inge Mathisen bf4ffed04c Allow texture animation and tcmask to be used together. 2010-11-10 20:10:40 +01:00
Per Inge Mathisen 77fb642247 The current algorithm for matching a defensive structure to terrain looks at the higher corner of a tile. This new algorithm looks instead at the higher position on a tile where a vertex in the model would intersect the terrain if it were level with the ground. This makes defensive structures match up with the terrain much closer, avoiding the 'jutting out of the terrain' effect of building defensive structures on uneven terrain. This closes ticket:2299 2010-11-09 19:11:15 +01:00
cybersphinx 268f2d0523 Polish translation update by Emdek.
Closes #1347.
2010-11-09 15:57:08 +01:00
cybersphinx 8facf5e178 Include autorevision.h in the tarball for Mac builds.
(cherry picked from commit fa3abb70e5ad9dfdd41451c1135648e240f2f2b3)
2010-11-08 02:55:40 +01:00
dak180 475398b0d2 Update the autorevision script so we can get something out of tarballs; also some minor fixes to data copying. 2010-11-07 16:09:35 -05:00
cybersphinx 24f204863c Update changelog formatting script for git commit hashes.
sed magic by Kreuvf.
2010-11-07 19:15:28 +01:00
Per Inge Mathisen 4eedc06362 Use Mysteryem's new tree textures (http://forums.wz2100.net/viewtopic.php?f=33&t=3485) for rockies tileset. 2010-11-07 17:44:27 +01:00
Cyp be5285f916 Fix duplicate structure IDs by removing GAME_BUILD message type.
The only remaining purpose of GAME_BUILD was to hackishly change structure IDs around, which is not useful since structure IDs are already synchronised.

Changelog: Fix inability to select or target some structures due to duplicate structure IDs.
2010-11-07 14:16:56 +01:00
Cyp c53a59b709 Don't call glBufferSubData(GL_ARRAY_BUFFER, *, 0, *), which crashes some drivers.
Probably shouldn't have crashed... Fixes ticket:2293.

Changelog: Work around crash in some graphics drivers on some maps.
2010-11-07 11:46:51 +01:00
buginator 5a35eb9f89 CHANGELOG: Correctly handle unicode strings for edit boxes.
fixes ticket:2209
(cherry picked from commit 3012fde61ef92151e0ec5125551a7b3481f05fb8)

Conflicts:

	lib/widget/editbox.c
2010-11-06 15:59:57 -04:00
Per Inge Mathisen 4492a1fbff Add higher resolution feature textures by Black Project. Closes ticket:2279 2010-11-06 17:56:01 +01:00
Per Inge Mathisen f78910162b Universal feature support by Mysteryem from ticket:872 2010-11-06 17:35:17 +01:00
Per Inge Mathisen 97f0d5b3e3 Do not crash when building ugly gates in L-formation. Closes ticket:2292 reported by Cyp. 2010-11-06 16:26:19 +01:00
Per Inge Mathisen f17981b6d6 semperfi: There is no point in rushing out to fortify an oil well that the enemy cannot (safely) get to. 2010-11-05 22:15:00 +01:00
Per Inge Mathisen d9be3f5bf4 semperfi: Do not send trucks to build at oil derricks where they will be shot to pieces en route. 2010-11-05 21:39:38 +01:00
Per Inge Mathisen ba0d8f3509 Do not make AIs build gateway fortifications in places where they can be shot at. 2010-11-05 21:39:07 +01:00
Per Inge Mathisen bd82f2b8e2 Make danger map accessible to scripts. New functions: safeDest(plr, x, y) and threatAt(plr, x, y) for querying it. 2010-11-05 21:16:05 +01:00
Per Inge Mathisen b676dcded4 Make danger map block fill on buildings as well as features again. Mark buildings and features in safe territories as safe. 2010-11-05 21:15:02 +01:00
dak180 fb697187f4 Update vorbis to 1.3.2. 2010-11-03 18:30:14 -04:00
Per Inge Mathisen 2a56d64b0b Speed up danger map performance by using a preallocated array instead of a dynamically allocated linked list for storing open nodes. 2010-11-03 21:14:05 +01:00
Per Inge Mathisen 5b0422af3c Fix warning for missing parentheses. Closes ticket:2291 2010-11-03 20:06:09 +01:00
Per Inge Mathisen fb58bfdaf8 Add missing files for 3,5,7 player map support. Closes ticket:2289, fix by Black Project. 2010-11-03 20:03:40 +01:00
Per Inge Mathisen aeb20e839e Make AI players able to produce more than one thing in each factory again. 2010-11-03 19:47:28 +01:00
Cyp 374c1a97be Fix desynch due to pre-placed oil drums being weird and unsynchronised.
Fixes audio message that shouldn't be there, since power from oil drums is no longer sent as a "gift".

Changelog: Fixed desynch on picking up oil drums included in maps. Also fixed power transferred audio on picking up oil drums.
2010-11-02 23:35:53 +01:00
Per Inge Mathisen d46309b6d1 Fix 2 rockies tileset decals (page-55.png and page-62.png). Patch by Dark Project in ticket:2285 2010-11-02 23:27:25 +01:00
Per Inge Mathisen bb72422a01 Cache the blocked status of tiles in a bitset to make lookups faster, especially for time consuming map analysis like danger maps. See ticket:2283 for discussion. 2010-11-02 21:30:56 +01:00
Per Inge Mathisen 1617b4c3d7 Add new keyword WZ_DECL_ALWAYS_INLINE to label functions that we always want to inline, even when compiling in debug mode.
Also manually inline map tile lookups in the danger map code for maximum performance (avoiding some checks).
2010-11-02 21:12:58 +01:00
Per Inge Mathisen b1c4980c81 Speed up danger map performance a bit by rejecting tiles during flood fill that have already been processed. 2010-11-02 21:06:03 +01:00
cybersphinx aa48d4c069 Fix last commit (libpng). 2010-11-02 16:28:37 +01:00
cybersphinx 17a9973597 Update the dependencies for the Windows cross build.
DejaVu fonts: 2.31 -> 2.32
freetype: 2.3.12 -> 2.4.3
gettext: 1.18.1 -> 1.18.1.1
libogg: 1.2.0 -> 1.2.1
libpng: 1.2.44 -> 1.4.4
libvorbis: 1.3.1 -> 1.3.2
2010-11-02 16:13:24 +01:00
cybersphinx af72ffa377 Updated Spanish translation by Saberuneko.
Closes #2214.
2010-11-02 15:34:00 +01:00
cybersphinx 29d171d0d9 Updated Romanian translation by adimosh.
Closes #2246.
2010-11-02 15:34:00 +01:00
cybersphinx 86526c9c20 Fix some French.
Closes #2268.
2010-11-02 15:34:00 +01:00
cybersphinx 99486cb694 Add Turkish translation by Ayhan Görgülü.
Closes #2261.
2010-11-02 15:34:00 +01:00
Buginator 0702fa9eb5 Show map / game name / hosted by in the tooltip for the lobby
closes ticket:2121

This does *NOT* break GAMESTRUCT compatibility.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11546 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 1119dada6868433f6840dd1fe174a7aa3858b081)
2010-11-02 15:30:36 +01:00
cybersphinx 8ed8ecc65c Update translations. 2010-11-02 13:32:52 +01:00
dak180 af8ebf5afa Filter tag names properly. 2010-11-01 11:16:55 -04:00
Cyp 92cd24faaa Make game difficulty setting not affect skirmish games.
Hopefully, skirmish games will be just like multiplayer now.

Changelog: Game difficulty setting no longer affects damage in single-player skirmish games.
2010-11-01 19:18:42 +01:00