Commit Graph

7149 Commits (5f3e7d58e5773bd5b8b0ccf446ce460a9f268a07)

Author SHA1 Message Date
dak180 5f3e7d58e5 Rearrange gettext and rip out popt.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10194 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 21:57:14 +01:00
Per Inge Mathisen 02901850b7 Allow droids to slide past enemy droids, instead of being blocked dead in the sand (which looks really stupid).
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10190 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 17:58:06 +01:00
Per Inge Mathisen bcb70cb5d7 Remove popt API calls that are no longer necessary.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10187 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 10:53:21 +01:00
Per Inge Mathisen 240bb91891 Remove our dependency on popt by writing a custom popt-like parser. Patch by me and i-NoD. Closes ticket:1659
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10186 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 10:53:21 +01:00
dak180 058044b2b5 Minor housekeeping and set a few lib headers to public.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10185 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:18 +01:00
i-nod 1756afb3a1 Fix another 2 warnings on MacOS builds that were caused by [10179].
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10184 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:18 +01:00
i-nod 5c64a642a4 Fix warnings on MacOS builds that were caused by [10179].
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10183 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:18 +01:00
Christian Ohm 9e3cde7a7a Fix compilation on Linux.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10181 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:17 +01:00
Christian Ohm 6cd520e4a0 Include/declaration cleanup for src/keyedit.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10180 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:17 +01:00
i-nod 4ad78bf9b2 TCMask feature: shaders infrastructure and TCMask shader, FF fallback is supported for TCMask. Part of #851.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10179 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:17 +01:00
i-nod 87f8777a63 TCMask support infrastructure: mask loading and colour retrieval routines. Part of #851.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10178 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-07 08:34:17 +01:00
Cyp afaaf0b6e4 Random minor cleanup. 2010-03-06 23:02:36 +01:00
i-nod 382bfad14b Define PRIu32 conversion macros for MSVC.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10173 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-06 22:59:05 +01:00
Giel van Schijndel 9cfa838355 Fix r10617 to work with autoconf versions before 2.65 as well
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10171 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-06 18:11:54 +01:00
i-nod 24cd201a00 Fix scroll routine issue. Closes #1663.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10170 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-06 16:50:16 +01:00
i-nod 011fd7ee2e Exclude MSVC from "Dummy initialisation" hacks as they are transparent enough, thus causing constant asserts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10169 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-06 16:50:16 +01:00
Giel van Schijndel ab1c72deaa configure: Alter AX_STACK_PROTECT_CC such that it will check whether linking C code with a C++ compiler will work as well when using -fstack-protector
This additional check allows, e.g. for using Clang as C compiler while
using g++ as the C++ compiler. (Clang has better error checking and
messages, plus compiles faster).

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10167 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-06 16:08:58 +01:00
Cyp 3258411228 Add more effects, much easier to see some types of projectiles now.
Hope I didn't exaggerate too much on the amount.
2010-03-06 12:54:00 +01:00
Cyp f60bd8f4cd Clean up interpolation and remove a lot of duplicate code from src/component.c. 2010-03-06 12:52:15 +01:00
Cyp 478424e0b6 Swap psTarget->pos and psViewer->pos back, so visibility and targetting rays are cast in the correct direction.
Visibility and targetting are no longer very weird.
2010-03-05 23:56:15 +01:00
Cyp 7a1d9ead68 Replace trig usage with iSin/iCos, etc... Replace dirtyHypot with clean iHypot. Replace MIN(MAX()) with clip().
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10155 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-05 14:43:37 +01:00
Cyp b81d6685ce Replace all use of trigSin/trigCos/trigIntSqrt and SIN/COS with the corresponding new i* functions. Remove the old ones.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10154 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-05 14:43:36 +01:00
Cyp ac48bb876c Replace int16_t casts with an angleDelta function, removing the corresponding 'Cast wrapping intended.' comments.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10153 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-05 10:08:10 +01:00
dak180 00f5e91fb8 Use a more reliable download address for libpng.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10152 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-05 08:55:42 +01:00
René Jürgens 5485af3b5c texture-wrf update for trunk
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10151 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-05 08:55:42 +01:00
René Jürgens 77bc330ebd NTW:
foundations and scavenger humans are back.
new scavenger research building + a new power module.
little ai changes
cyborg mechanic and engineer fixed

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10144 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-05 08:55:42 +01:00
Christian Ohm 42ed0032a4 Include/declaration cleanup for src/intorder.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10140 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:37:10 +01:00
Christian Ohm e929c592d2 Include/declaration cleanup for src/intimage.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10136 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Christian Ohm b6fcdb52f6 Include/declaration cleanup for src/e3demo.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10135 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Christian Ohm 96e8d702b3 Include/declaration cleanup for src/group.c/h.
Also remove "extern" from function declaration from already done headers, since
that's default anyway. Unused (non-trivial) functions get a comment "NOTE:
Unused! <declaration>" that gets listed in trac's code tags section, to make it
easy to find them.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10134 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Per Inge Mathisen 89b6f661c7 Adjust gateways to fit within the building limits on the map. This prevents unbuildable gateways on certain maps.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10133 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Per Inge Mathisen 474e16313e Fix assert failure when placing an artifact on factory destruction. The problem was that
I forgot to convert the tile origin coordinates to world coordinates in a recent patch.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10132 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Cyp 9ad1bba74f Try again at squelching the mac warnings.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10131 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Cyp 9f1035b605 A tiny bit more cleanup, try to squelch mac warnings in multigifts.c.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10130 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
dak180 e06967f936 Activating -Werror since it will no longer cause insanity in Zarels
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10129 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Cyp 8129d4cec8 Fix crash on rendering rearm pads, squelch mac warning in wavecast.cpp and visibility.c.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10128 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:44 +01:00
Per Inge Mathisen b9d798c572 Changes path-finding from map/tile coordinates (no intra-tile precision) to world coordinates
(7bit precision). It removes some conversions, and allows for future improvements. Closes ticket:1654


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10127 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Per Inge Mathisen ce9b2a62ff Change fpathCheck() to use world coordinates to save some conversions. Add new macro worldTile() to complement mapTile() to save some typing.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10125 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Cyp 48421325ec More cleanup of units and code. Squelch a couple of mac warnings.
16 files changed, 184 insertions(+), 467 deletions(-)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10124 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Christian Ohm a5a3cc9bdf Include/declaration cleanup for src/data.c, difficulty.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10120 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Christian Ohm 3458dae176 Include/declaration cleanup for src/configuration.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10119 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Christian Ohm 3cea69221b Fix warning on Macs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10117 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Christian Ohm 1b1a402b3d Fix uninitialized variable warning.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10115 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Christian Ohm 0ec360cff8 Fix an uninitialized variable warning on Macs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10113 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:43 +01:00
Christian Ohm 4ef4290db2 Update translations.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10100 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:40 +01:00
Christian Ohm dd5413fc5c Include/declaration cleanup for src/cluster.c/h.
Removes unused clustDisplay function.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10099 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:39 +01:00
Christian Ohm fb6baebd2c Include/declaration cleanup for src/clparse.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10098 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:39 +01:00
Christian Ohm ffe163985b Include cleanup for src/cheat.c.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10097 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:39 +01:00
Christian Ohm dc118320e2 Include/declaration cleanup for src/challenge.c.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10096 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:39 +01:00
Christian Ohm 8fb31151f0 Include/declaration cleanup for src/aud.c, lib/sound/aud.h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10095 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:39 +01:00