Per Inge Mathisen
d7a003cac1
Fix signedness warning
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1728 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-28 12:03:36 +00:00
Giel van Schijndel
fb8094aae2
* Use uint8_t instead of char since we depend on the precise size of this structure
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1727 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 23:48:20 +00:00
Per Inge Mathisen
c32d3b11b4
Cleanup to aid tracking down assert in form.c
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1726 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 22:15:10 +00:00
Roman C
a07a76db54
- split a huge assignment for easier debugging
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1725 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 19:40:34 +00:00
Giel van Schijndel
f9783ff29f
* Remove unused member Version from IMAGEHEADER
...
* Use PHYSFS_close after we've read from the image file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1724 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 19:28:54 +00:00
Giel van Schijndel
575a78836a
remove unused member PalID from IMAGEDEF
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1723 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 18:51:52 +00:00
Giel van Schijndel
b5154ae4a3
* Remove redundant and unused string from IMG-header (PalFile)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1722 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 18:24:37 +00:00
Giel van Schijndel
9e520c844b
Cleanup:
...
* Simply return the value we need (instead of using a pointer)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1721 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 16:41:21 +00:00
Giel van Schijndel
384187eaa0
Cleanup:
...
* Don't use MAKEFRACT for comparisons with floats
* Remove some commented out code which accomplished the same as the uncommented code directly after it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1720 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 16:10:08 +00:00
Giel van Schijndel
cdea281ca6
* now load resources of type "IMG" directly from their file rather than an intermediate memory buffer
...
* make definitions of IMAGEHEADER and IMAGEDEF safe for loading on systems with different sizes for datatypes
* Allocate IMAGEDEF in a function of its own: iV_AllocImageFile (uses only one malloc call so we don't need to go and toy with lots free() calls on failure)
* Use PHYSFS_read* functions for endian correctness (rather than the endian_*word stuff)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1719 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 15:50:56 +00:00
Roman C
884f22a4af
- replaced "=<" and "=>" with ">=" and "<=" respectively
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1718 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 14:43:12 +00:00
Roman C
a343ea0eb8
- modified the syntax of the last commit, no semantic modifications
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1717 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 14:38:20 +00:00
Roman C
b2bcb79c99
- prevent wz from pausing in multiplayer when focus is lost
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1716 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 14:29:16 +00:00
Giel van Schijndel
02c6705f61
Move the condition we are asserting into the ASSERT-statement itself
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1715 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 14:05:00 +00:00
Roman C
d948715572
- a fix (hopefully) for one of the mp asserts
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1714 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-27 13:02:17 +00:00
Per Inge Mathisen
10542cf278
Repair the experimental moving shadows code. It remains disabled, however.
...
To enable, uncomment the call to findSunVector() in src/display3d.c and
uncomment the lighting = TRUE in lib/ivis_opengl/piedraw.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1713 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 21:51:57 +00:00
Per Inge Mathisen
4cf37f5ddc
Remove unused parameter, define, and set more visually pleasing
...
ambient lighting for the disabled OpenGL lighting mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1712 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 20:49:35 +00:00
Per Inge Mathisen
cbb0795bd3
Remove misc dead code and make some functions static
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1711 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 20:15:42 +00:00
Per Inge Mathisen
2ec98482ba
Remove workaround for Direct3D bug
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1710 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 19:29:36 +00:00
Dennis Schridde
8efecd07b2
const and indent
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1709 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 19:14:23 +00:00
Dennis Schridde
b29fad2da0
Load the object matrices by loading them and not by loading the identity and multiplying.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1708 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 18:51:47 +00:00
Dennis Schridde
3c2afc391e
Move the calculation of the relative light position for shadows out of the ShadowDrawLoop, into Draw3DShape, so we don't need to calculate it twice for the front- and the backface.
...
Patch inspired by Watermelon.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1707 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 18:25:15 +00:00
Dennis Schridde
2313b8d53e
The Vector3 functions where not really const, since they operated on pointers.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1706 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 17:00:55 +00:00
Dennis Schridde
4d96fb962d
This should fix crashing projectiles as reported in http://wz2100.net/forum/index.php?topic=666.0
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1705 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-26 13:59:31 +00:00
Dennis Schridde
f29d7647f6
It's probably safer with these types... (Because of the previous commits)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1704 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-25 18:03:48 +00:00
Dennis Schridde
9d4a007121
More inlining and const
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1703 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-25 17:58:23 +00:00
Dennis Schridde
52486bee8b
const const const
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1702 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-25 17:21:13 +00:00
Giel van Schijndel
fe78e7670a
Backport r1699 from branches/2.0 to trunk:
...
* Set fullscreen to be the default if no setting is found in the config file (to avoid confusion for novice/new users)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1700 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-25 15:02:15 +00:00
Giel van Schijndel
de4b91e2c3
* Use a forward declaration of `struct OggVorbisDecoderState` instead of a dual typedef (one typedef as void for external functions, one as the struct for the implementation file), only to allow us to take pointers to it
...
* Drop now unnecessary extern "C" declaration, since C++'s function overloading shouldn't cause problems now
* Add "struct" keyword in front of all declarations of `struct OggVorbisDecoderState` or pointers to it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1698 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-25 14:56:18 +00:00
Giel van Schijndel
12078733b8
* Fix usage of `new` which is both a) a keyword in C++, and b) an undescriptive variable name
...
* Make sure function overloading by a C++ compiler doesn't cause linker errors by declaring affected functions extern "C"
Patch by Christian Ohm (in message <20070523201048.GF3778@localdomain>);
* applied changes to lib/ivis_common/imdload.c
* brought linker errors to light caused by function overloading
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1695 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 20:57:11 +00:00
Dennis Schridde
4c2128a0e6
NO_SOUND was undefined...
...
Might want to consider backporting this fix to 2.0 as I think there were some people complaining about "missing files".
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1694 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 20:55:09 +00:00
Giel van Schijndel
856de7948e
* Ignore scripts trying to use sound-stuff when sound is disabled
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1693 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 20:33:59 +00:00
Giel van Schijndel
856830a0e4
Cleanup:
...
* Remove some forward declarations of deprecated, unused and undefined functions
* Remove some unused functions which only said: "return TRUE;"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1692 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 19:36:21 +00:00
Ari Johnson
7e3016e63f
Updated Xcode project for recently deleted file
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1691 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 19:15:06 +00:00
Giel van Schijndel
b22dbc7fe5
* Remove netusers_stub.c. Its only contained function was NETuseNetwork, which granted direct write access to global var NetPlay.bComms. This was camouflaged as a nice function call, so instead we now use it directly as it is: accessing/modifying a global variable.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1690 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 18:48:36 +00:00
Per Inge Mathisen
ae736962de
Code cleanup. There should be no behaviour changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1689 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 18:43:22 +00:00
Giel van Schijndel
b3a43af4d3
* Add code to support the C99 bool type (fallback for non-C99 compatible compilers provided!)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1688 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 17:03:22 +00:00
Giel van Schijndel
f315843682
* Also add debug symbols to non-debug builds so that our .gdmp files won't be entirely useless (people who don't want these symbols can always strip their binary)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1687 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-23 16:11:34 +00:00
Per Inge Mathisen
241e1b02c3
Effects code cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1686 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-22 21:14:55 +00:00
Per Inge Mathisen
669135f472
Remove lots of duplicated code in effects.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1685 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-22 20:55:30 +00:00
Per Inge Mathisen
c0abb47655
New map macro map_round() rounds map coordinates down to tile boundaries.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1684 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-22 20:36:07 +00:00
Dennis Schridde
c0e9fa3211
Make MSVC happier
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1683 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 20:17:38 +00:00
Dennis Schridde
057f140b6c
Make MSVC happy
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1682 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 20:12:39 +00:00
Dennis Schridde
1014259054
This should enable floating point precision in IMD (.pie) files.
...
It should even render them as floats. I wasn't able to see a difference after modifying some PIE files, though.
This patch is heavily inspired by Watermelon's work. (Namely piefloat.patch)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1681 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 19:56:07 +00:00
Dennis Schridde
7544470e35
Cleanup. Note the FIXME!
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1680 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 19:42:05 +00:00
Dennis Schridde
49f8259226
More cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1679 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 18:57:11 +00:00
Dennis Schridde
504126bda9
Forgotten cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1678 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 18:33:07 +00:00
Dennis Schridde
b8f038d37a
Cleanup IMD loader.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1677 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 18:25:46 +00:00
Dennis Schridde
5653727379
DOn't unnecessarily recurse into .svn folders.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1676 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 16:51:14 +00:00
Dennis Schridde
d4c81521b8
Updated to doxygen 1.5.2
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1675 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-21 16:33:44 +00:00