Commit Graph

7105 Commits (4ef4290db2ae9a510a1469a458543e2030a8e858)

Author SHA1 Message Date
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
Christian Ohm 6a18ae5140 Include/declaration cleanup for src/atmos.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10094 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:39 +01:00
Christian Ohm d5e35cd779 Include/declaration cleanup for src/wrappers.c/h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10093 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:39 +01:00
Per Inge Mathisen 444dd27af9 Do not crash on debugging logging after a build action failure.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10091 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Per Inge Mathisen 91ddee6a02 Add more objTrace calls for move code debugging.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10089 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Cyp 5a13a31726 Simplify indirect targetting calculations. Improve the sqrt functions.
Mini-rocket arrays should no longer randomly fire high up into the air when the target is at a lower altitude, instead, the velocity should be reduced. (Looking at the code, it seems it was supposed to be a feature, not a bug.)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10088 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Cyp 61efba03b3 Use bigger buffers in registry_load, to avoid stack overflow if a key is longer than 31 bytes.
Probably closes ticket:https://bugs.launchpad.net/ubuntu/+source/warzone2100/+bug/520432

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10086 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Per Inge Mathisen 6e16f84a1b Fix droid frustration so that droids do not start the game frustrated. Make sure that scavs
never fire at features, since their own bases are built out of features instead of buildings
they own. Also improve scav script a bit to ensure they do not run out of things to do.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10084 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Cyp 6c811c1ecb More unit changes and cleanup, remove now unused arccos and already unused arcsin tables.
No bugs intentionally fixed.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10083 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Per Inge Mathisen 8a9c994305 Make moveGetDirection() actually return a direction, and reduce some code lines.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10082 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Per Inge Mathisen 545b49260d Make sure that for campaign, we always set the is human flag correctly on savegame load. This closes ticket:1628
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10080 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Christian Ohm 7cee2b251a Clean up loadingScreenCallback.
Now settings can be changed easily, and the bar adjusts to the screen
resolution. Closes #1645.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10079 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:38 +01:00
Christian Ohm 867ff725d2 Add pal_RGBA and pal_Grey functions.
pal_RGBA returns a PIELIGHT from four r, g, b, a values, pal_Grey is an alias
for pal_SetBrightness. Closes #1644.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10078 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Christian Ohm ce844cf2d1 Don't compare an uint8_t to -1.
In NETallowJoining, there was a whole block of unreachable code because of
this. Warning reported by dak180, patch reviewed by Per.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10077 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Per Inge Mathisen c472531b60 Rename patch to be nice to scripts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10074 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Cyp 0137eeaf5f Remove some anti-underflow hacks, now that coordinates are signed.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10073 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Cyp 0454489926 Fix some unit conversion bugs, and do unit conversion cleanup.
Fixes saving angles outside [0°; 360°].
Fixes droids failing to fire, unless the target angle was exactly divisible by 1°.
Fixes archangels missing some targets slightly, at long distances, if they managed to fire.
Possibly fixes something to do with shuffling, since moveDirDiff used to return the absolute difference, despite how it was used when shuffling.
Simpler code, 101 lines shorter.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10072 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Per Inge Mathisen 210f9cc3a3 Add temporary hack to prevent division on zero errors in interpolation code.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10071 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
dak180 412cfdb983 Do not bother people building warzone on their own if we cannot easily get them gettext binaries.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10070 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Cyp 4dc1b2a681 Fix the game getting completely messed up if anyone changes position or colour, and then someone leaves.
The problem was due to player positions and colours of a slot getting reset when someone leaves, resulting in multiple slots in the same position or with the same colour.
Also, clean up some weird declarations in the wrong place and stuff.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10068 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Per Inge Mathisen 924b6c5169 Changing object rotations to use 16 bit unsigned values instead of the current
mix of signed and floating point types. This allows us to use under and over
flow as features instead of failures. There are many conversions using DEG() and
UNDEG() in the code now - these should be read as TODO items for further work.
There is a high chance of bugs being introduced. Patch reviewed by Cyp_.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10067 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:37 +01:00
Guangcong Luo 78c10eb0e7 Do not visualize path of a droid that has no path.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10065 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
Guangcong Luo 59168acc5c Fix some rounding errors in repair facility and research facility.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10063 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
Cyp 80d7cdb475 Add some better trig lookup table functions, and make updateDroidOrientation use them.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10061 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
i-nod 5f58469f2b 'Active mods' frontend label was repositioned to top-left corner and its internal buffer was enlarged a bit.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10060 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
Christian Ohm 4af14d9ec0 Only clear buffers on exit if we still have an OpenGL context.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10057 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
dak180 80b379fcbf Externalize fetch scripts.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10056 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
Christian Ohm f762bdf40e Don't put random colours in the loading bar.
Make every star have a random grey value instead.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10054 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
i-nod f875b678ac Fix MSVC 2008 for the GLee changes in r10028.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10053 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
Per Inge Mathisen 5f7aea25a3 In preparation for newnet branch, turn object positions into int32 values and
introduce the new typedef Position to hold them. Patch reviewed by Cyp_.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10052 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
Safety0ff f50803b0f4 Stop landing VTOLs even if they are below the map height.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10050 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:36 +01:00
Safety0ff bab5657791 Update to r9472 to match r10022.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10049 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
dak180 89feaaa192 Update libpng to 1.4.1.
Closes #1479

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10048 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
Safety0ff 327b684965 Update to r9628: Re-enable face culling after having disabled it for the map preview rather than enabling it each time we draw the 3D scene.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10047 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
Safety0ff 9da488b14c Update to r9629: Use floats constants instead of ubytes to save on the conversion.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10046 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
Christian Ohm 3f4eef1b54 Fix makefile.win32 for the GLee changes in r10028.
Thanks to sicanjal for testing.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10041 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
Cyp 3dd3cd5051 When droids are taken over, don't send droid count, since droid count isn't read, making the message unparsable.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10039 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
René Jürgens 5f6fc04c84 Online - Template Fix #2
sry... but thats realy the right one now. :/

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10037 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
Christian Ohm 20017e380c glFlush on exit to reset video mode.
Without this, when running the game fullscreen in a smaller resolution, it
would stay that way on exit. Introduced in r9633, though that is in 2.3 as
well, and this problem only occurred in trunk.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10035 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
René Jürgens d5ff075122 Online - Template Fix
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10029 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:35 +01:00
Christian Ohm 714d2d1b69 Use the system's version of GLee, if available.
Require at least 5.4, since that's what we have included. If not detected, we
use the integrated copy as before.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10028 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-04 19:07:34 +01:00
i-nod 09a3837526 Sync NSIS project with 2.3 version.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10021 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-27 22:51:27 +01:00
dak180 7e93e96524 Save space on releases by compressing everything we can.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10018 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-27 22:51:27 +01:00
i-nod 991b158f65 Use less complex zip calls or mingw32-make will fail.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10016 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-27 22:51:27 +01:00
Per Inge Mathisen 89b90ec8dc Shave 64 unused bits off each A* node.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10015 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-27 22:51:27 +01:00