Buginator
19696a3f16
Cleanup main so we only have 1 atexit() call for our system shutdown routine, instead of hiding multiple shutdown routines using atexit() for each.
...
Currently, we have 1 atexit for our main shutdown routine, and 1 atexit call for the exception handler.
Fix mem leak for mod list.
Also dump allocator stats for MSVC people
2.3: r10251
refs ticket:1673
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10262 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:16 +01:00
Buginator
584c4f1aee
Add new routines for MSVC that allows us to toggle the allocation tracking.
...
Currently, it is only used in debug builds for strdup().
For release builds, we use _strdup().
This was necessary to prevent reporting of tons of 'memory leaks' caused by strdup(). Mostly caused by all the parsers lack of cleaning up after themselves.
Sample of what it does is shown. When we don't toggle the allocator, then it is added to the Normal Blocks. If we do toggle the allocator, then it is added to the CRT Blocks.
0 bytes in 0 Free Blocks means no memory leaks (for this quick loading of a SP mission--we still have LOTS of other leaks!)
I believe you can figure out what the rest of the stats mean.
0 bytes in 0 Free Blocks.
913860 bytes in 1826 Normal Blocks.
18745 bytes in 139 CRT Blocks.
0 bytes in 0 Ignore Blocks.
0 bytes in 0 Client Blocks.
Largest number used: 13564181 bytes.
Total allocations: 283917669 bytes.
2.3: r10250
refs ticket:1673
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10261 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:16 +01:00
Buginator
01fee22afe
Fix mem leaks concerning Visibility
...
2.3: r10248
refs ticket:1673
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10260 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:16 +01:00
Buginator
7019910178
Fix mem leaks concerning apCompLists
...
2.3: r10247
refs ticket:1673
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10259 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:16 +01:00
Buginator
e9f3105719
Fix memleak in stats, and get rid of code that was causing dangling pointers.
...
2.3: r10246
refs ticket:1673
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10258 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:15 +01:00
Buginator
d1cd675438
Fix memleak in stars
...
2.3: r10245
refs ticket:1673
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10257 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:15 +01:00
Buginator
763a6177cb
Add a simple batch file for MSVC people to delete all the generated parser files, since 'clean solution' doesn't clean everything that was made by bison/flex.
...
(You can either run it manually, or add it to the Pre-build Event to force it to regenerate those files all the time)
2.3: r10252
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10256 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:15 +01:00
Buginator
90326fcbf0
Fix mem leaks concerning screenshots
...
2.3: r10249
refs ticket:1673
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10255 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:15 +01:00
Buginator
a5f56f6791
Add missing #include(s)
...
*Note*, all our .c / .cpp files really should have these two includes in it.
#include "lib/framework/wzglobal.h"
#include "lib/framework/frame.h"
First one is for platform specific settings, and the second one is for platform specific functions that we use to override.
2.3: r10236
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10254 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:15 +01:00
Buginator
d82fb0f23b
GLee search path fix
...
2.3: r10174
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10253 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-14 09:21:14 +01:00
Christian Ohm
da18c7e0ab
Updated Italian translation by Alpha93.
...
Closes #1680 .
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10239 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-13 22:57:23 +01:00
Christian Ohm
5ce0a4cf89
Miniupnp doesn't need to be translated.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10238 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-13 22:57:23 +01:00
Christian Ohm
d726e372cf
Remove .svn folders for make dist.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10237 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-13 22:57:23 +01:00
Per Inge Mathisen
936b5dc0a4
semperfi: Add more debug logging. Info added to console when unit selected. Add more techs to non-air tech tree.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10226 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-11 17:29:17 +01:00
Per Inge Mathisen
73e0a57f7d
Fire off the CALL_DROID_SELECTED trigger also when not in tutorial so that it can be used for debugging AI scripts.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10225 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-11 17:29:16 +01:00
Cyp
d9a5af62ad
Fix building on mac (should really work this time). Maybe fix building on windows, maybe not, no idea if it was the same issue.
2010-03-11 09:42:38 +01:00
Cyp
21fb1a18ed
Fix mac warnings, hopefully (effectively reverting my previous changes to tex.h)...
2010-03-10 23:09:27 +01:00
Cyp
6360e80f25
Try to fix new build warnings and a build error on mac.
2010-03-10 22:55:24 +01:00
Cyp
92199e2a06
Only let host set player position/colour, send new players info about unallocated slots too.
...
Only letting host set player position/colour probably fixes a race condition occuring if a player changes name while the host moves the player.
Sending new players info about allocated slots fixes some weird cases with inconsistent positions (and missing slots), for example, if moving a player and starting a game, leaving the game (without closing the program), and starting a new game.
2010-03-10 21:08:15 +01:00
Cyp
05575109b5
Try to clean up includes, fix missing extern on declaration of DataHash[].
2010-03-10 13:31:27 +01:00
Guangcong Luo
04e7e0452f
Fix Tank Killer angle bug in campaign (previous fix only fixed skirmish).
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10213 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-10 08:23:53 +01:00
i-nod
966cd1676b
Fix warnings on MacOS builds that were caused by [10210].
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10211 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-10 08:23:52 +01:00
i-nod
dda0f9f77b
Enable or disable fog in TCMask shader depending on in-game state. Part of #851 . Reviewed by Per.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10210 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-10 08:23:46 +01:00
i-nod
627a6d1860
iViS engine tweaks. Closes #1667 .
...
- Replace glBlend calls with iVis blending wrapper.
- Remove pie_NO_BILINEAR flag and replace it with pie_FORCE_FOG flag.
- Enable fogging for structure baseplate with pie_FORCE_FOG.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10209 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-09 22:05:42 +01:00
Cyp
8061ad7d95
Fix last commit, use psStructure->player, instead of some random uninitialised variable.
2010-03-09 19:45:00 +01:00
Cyp
945432d40a
Add check that psStruct->time != gameTime in aiUpdateStructure, and print a LOG_ERROR if that fails.
...
Maybe fixes ticket:1669?
2010-03-09 18:48:58 +01:00
Cyp
a3bc60335d
Remove duplicate message that appears when building oil derrick with 4 trucks.
...
Remove duplicate message that appears when building oil derrick with 4 trucks.
Remove duplicate message that appears when building oil derrick with 4 trucks.
2010-03-08 19:08:59 +01:00
dak180
bdc5d0fef1
Crash reports should have line numbers, now the mac ones will.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10201 4a71c877-e1ca-e34f-864e-861f7616d084
2010-03-08 09:45:02 +01:00
Cyp
c22252d7ae
Don't rotate VTOL bomb graphics, since it looks strange.
...
Closes ticket:1662.
2010-03-07 23:39:23 +01:00
Cyp
f07587e0f0
Make rayCast take an uint16_t, and cleanup or remove weird code as applicable.
2010-03-07 22:05:07 +01:00
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