Dennis Schridde
0c46dfdea3
- Get full path to warzone binary, so gdb can actually find it. (It runs in an empty env, so it doesn't even have PATH.)
...
- Add some debug output (which will never get shown, since we setup the crashhandler before the debughandler).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1968 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 17:35:09 +00:00
Dennis Schridde
b3f62323d4
This time fix it really. Thanks EvilGuru.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1967 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 16:29:15 +00:00
Dennis Schridde
1a61e63fc4
Fix a mistake which resulted in infinite loops and horrendously big logfiles. Thanks to Kamaze and EvilGuru.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1966 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 16:18:04 +00:00
Dennis Schridde
428c893226
Revert to the old implementation of STATIC_ASSERT. Beware: This does not work in global context (outside of a function).
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1965 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-25 12:34:39 +00:00
Giel van Schijndel
78389548d8
* Move #ifdef EDIT_OPTIONS so that some IDOPT_EDIT code is properly commented out
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1964 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 22:13:13 +00:00
Per Inge Mathisen
0b3a3367b9
Rollback commit 1960, since I want to make this edit stuff work later
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1963 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 21:58:42 +00:00
Per Inge Mathisen
4390632ce8
Add missing header guards
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1962 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 21:51:29 +00:00
Giel van Schijndel
e3d9c70e94
* remove unused function audio_Get2DPlayerRotAboutVerticalAxis
...
* remove global var g_bStopAll which seems to function as some kind of crude (and non-functional) mutex lock (while Warzone doesn't even uses threads!)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1961 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 21:11:43 +00:00
Giel van Schijndel
2602677f39
* Remove effectively commented out code (was enclosed by `#ifdef EDIT_OPTIONS` conditionals while EDIT_OPTIONS was never defined)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1960 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 19:54:06 +00:00
Ari Johnson
ddd8464d0d
Updated Xcode project file to reflect removed netcrypt.c
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1959 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 19:46:28 +00:00
Giel van Schijndel
46434a1e5d
* Remove global var BOOL display3D which is always true anyway
...
* Adapt all code that depends on display3D by either removing if (!display3D){} code or removing the conditional around if(display3D){}
* remove now useless function audio_Display3D (returned display3D) and now unused function audio_Get2DPlayerPos
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1958 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 19:38:36 +00:00
Giel van Schijndel
aa54cee726
* Check hosts that attempt to register a game with the lobby server for reachability on port 9999 (e.g. a NAT/firewall might obstruct this)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1957 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 17:43:57 +00:00
Dennis Schridde
3acbbe97a3
Remove the gameData from the list even if we couldn't read the new data.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1956 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 16:38:07 +00:00
Giel van Schijndel
39db2bef4b
* Update Code::Blocks and MSVC projects to removal of lib/netplay/netcrypt.c in r1953
...
* Remove lib/netplay/netcrypt.c from the list of files to extract translatable strings from for gettext
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1954 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 13:46:29 +00:00
Per Inge Mathisen
d3271aa386
Remove now quite useless encryption and anti-cheat code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1953 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 13:38:22 +00:00
Dennis Schridde
6a40fa81cf
Use allow_reuse_address correctly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1952 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 23:14:05 +00:00
Dennis Schridde
69aefb6909
- Rename lobbyDev to lobbyDbg
...
- Add debug output to gameserver sanity check
- Set the connection-check timeout to 10s
- Allow reusing of the masterserver address since otherwise lobbyserver restarts don't work immediately
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1951 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 23:01:07 +00:00
Dennis Schridde
460fd94d47
- Don't list wrongly configured gameservers (eg. behind a NAT)
...
- Try to fix len(None) (TypeError: len() of unsized object)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1950 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 22:27:14 +00:00
Dennis Schridde
d0382a30d9
Use sizeof instead of magic values.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1949 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 19:19:43 +00:00
Giel van Schijndel
eeeedf36ed
* Warzone is a GUI application, so set this in Code::Blocks so that M$Win doesn't produce a console window
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1948 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 19:08:48 +00:00
Ari Johnson
ca8c8910c2
Updated libpng download location
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1944 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 18:51:53 +00:00
Giel van Schijndel
072395e2df
* Initialize our variables before usage; this should prevent out-of-bound array accesses when a player in a multiplayer game designs a new design template
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1943 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 18:50:53 +00:00
Per Inge Mathisen
f73ff26ebf
Fix blooper in template send code
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1942 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 16:46:09 +00:00
Per Inge Mathisen
da5c018921
Try to solve droid template network bug by sending field by field instead.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1941 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 16:33:36 +00:00
Per Inge Mathisen
35bb29274d
Fix warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1940 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 13:50:00 +00:00
Per Inge Mathisen
c4199ed5b6
Hopefully fix multiplayer crash when sending droid templates between
...
players on computers with different pointer length.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1939 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 13:47:36 +00:00
Per Inge Mathisen
0fedc728ce
The receiveWholeDroid net packet function added object ID into a psDroid->psTarget[i]
...
pointer field. This would not only not work if the two players with different pointer
bit length were communicating, it would also crash if psDroid->psTarget[i] was not
overwritten before use. Fixed!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1938 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 13:14:33 +00:00
Giel van Schijndel
2c98295eab
* Change usage of DROID->numKills to hold the percentage of dealt damage (to other units) instead
...
* This means that in order to get the actual amount of kills by this droid you need to divide this field by 100
* All *Damage functions will now return a negative number if the amount of dealt damage was enough to destroy the target object (instead of TRUE)
Patch #745 (Adds Support For Partial Kills) by Freddie Witherden <evilguru>
Some minor changes by me (expansion of comments)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1937 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 12:48:03 +00:00
Giel van Schijndel
e4e5233a44
* Revert changes to Code::Blocks projectfile in r1915
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1936 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 12:34:07 +00:00
Giel van Schijndel
13f89d6f7b
* Wrap a console print string in the _() gettext macro
...
* Remove a useless duplicated & commented out line
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1935 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 11:54:48 +00:00
Per Inge Mathisen
5abe70815c
Small cleanup and sanity checking of send projectile function based on patch by Watermelon.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1934 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 11:46:06 +00:00
Per Inge Mathisen
bfc1e200f4
Add assert to see if some code is actually in use or not...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1933 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 11:34:04 +00:00
Dennis Schridde
813c5db69c
- Merge my OpenAL installer NSIS script with Giels (Installed into INSTDIR instead of TEMP)
...
- Simplify Windows NSIS Makefile. Since 2.25 -options are supported
- Add updater rule to AutoMakefile
- Remove unnecessary aclocal flags from icons/
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1925 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 16:01:46 +00:00
Giel van Schijndel
614554e997
* Add Dutch translation to NSIS setup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1919 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 12:51:29 +00:00
Giel van Schijndel
5ae2bbfda5
* Add GPL license headers to NSIS installer files
...
Dennis Schridde <devurandom> gave me permission to license his part of these files under the GPL (on IRC)
I hereby (explicitly, implicitly I had already done so) release my contributions to these files under the GPL as well.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1918 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 11:44:13 +00:00
Giel van Schijndel
0e44420c3f
* Use the OpenAL installer (as provided by Creative) to install the OpenAL libraries along with Warzone; instead of providing our own DLLs
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1917 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 11:32:50 +00:00
Giel van Schijndel
ad89b49407
* Revert unintentionally committed changes of r1915
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1916 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 11:09:48 +00:00
Giel van Schijndel
1779c3f364
* Add two other Code::Blocks files (projectfile.depend, projectfile.layout) to ignore list
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1915 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 11:06:35 +00:00
Giel van Schijndel
7f4b836429
* Add Code::Blocks build directories (obj & bin) to the ignore list
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1914 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 11:04:28 +00:00
Per Inge Mathisen
fdfe7f0745
Forward port more cleanups from reference count work. Add warning about pointer
...
cast to int which is likely to cause bugs on 64bit architectures in projectile code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1913 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-21 21:23:59 +00:00
Per Inge Mathisen
5aa373e5b2
Misc cleanup forward ported from reference counting work. Adds new checking
...
macro CHECK_STRUCTURE().
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1912 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-21 17:43:50 +00:00
Giel van Schijndel
2658fa36aa
* Change kf_MoveToLastMessagePos() to be more readable (i.e. simply return on error, don't wrap the actual working, non-error, code in a conditional), also use map_coord instead of `>> TILE_SHIFT`
...
* Remove unused (and probably useless) function audio_PlayPreviousQueueTrack
* Remove unused functions audio_ReleaseTrack, audio_GetAvailableID, audio_GetSampleMixVol
* Remove useless assignment in audio_GetPreviousTrackPos and make check for invalid coordinates more easily readable
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1911 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-21 13:39:05 +00:00
Giel van Schijndel
37be498275
Cleanup:
...
* Change the array iteration code such that it is a bit easier to read
* remove audio_CheckAllUnloaded() which only forwarded to sound_CheckAllUnloaded()
* Add some comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1910 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-21 13:03:52 +00:00
Dennis Schridde
d8f52e0caa
Remove unnecessary import of __future__ which also does not exist in Windows Blender. Patch by Kage.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1906 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-20 19:06:29 +00:00
Dennis Schridde
e5ff965bbc
Remove unused "altVal"(disp3d) and macros(fract), make macro safer(map)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1902 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-19 23:32:17 +00:00
Dennis Schridde
a2b9e22822
- Cleanup unnecessary variables in warcam.c
...
- Adjust camera-smoothness in warcam.h
- Simplify trackHeight(). I experienced an extreme, infinite but irreproducible rotation once: If anyone experiences it again, this is very probably the culprit.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1901 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-19 23:18:44 +00:00
Dennis Schridde
0f61260968
PIE importer version 0.2.1 by Kage:
...
- no longer use glob
Known (and as of yet unfixed) issues are:
- it does not handle filenames safely (tabs and other whitespace in a filename are not handled correctly, though the likelyhood of this problem arising are low)
- it can parse extremely incorrect pie files (points not defined within a level, for example) when perhaps it should just fail gracefully
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1899 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-19 21:51:57 +00:00
Ari Johnson
131b121fac
Updated Xcode project file
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1898 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-19 19:00:28 +00:00
Dennis Schridde
6d08197d95
Unused definitions.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1897 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-19 18:39:49 +00:00
Dennis Schridde
2f9105cc71
water-fix part 3: Animation
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1896 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-19 18:33:15 +00:00