Commit Graph

3323 Commits (dd02289a5e104f2eba1a903b4f1b0be4843de2dd)

Author SHA1 Message Date
Per Inge Mathisen f9d2a9152d Remove PIE_ALPHA. Revert most of r4023, since some parts of the drawing code
did not handle alpha blending too well, and blended solids in some cases.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4025 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-12 21:07:26 +00:00
Per Inge Mathisen 169e5bcc42 Drastically reduce the number of (spurious) state changes per frame.
Doubles frames per second drawn here.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4024 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-12 20:14:25 +00:00
Per Inge Mathisen d4e10b07e9 Do not care what blending state we are in when drawing simple and solid
graphics additions like lines and boxes to cut down on state changes.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4023 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-12 19:56:34 +00:00
Per Inge Mathisen 4004ce9872 Clean up in rendering modes. Remove unuseful pie_SetColourCombine().
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4022 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-12 19:41:33 +00:00
Per Inge Mathisen 83ddfb7b99 Small cleanup of the screen flip code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4021 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-12 19:29:24 +00:00
Giel van Schijndel 26326762f7 The NSIS script is __not__ executable
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4017 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-12 14:59:13 +00:00
Giel van Schijndel a73f0de08a Const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4016 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 20:29:45 +00:00
Giel van Schijndel 76f9cfdeed Register the PhysicsFS implementation of the SQLite VFS class as the default SQLite VFS when starting
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4015 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 20:13:40 +00:00
Giel van Schijndel c996eed64a Cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4014 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 20:07:20 +00:00
Per Inge Mathisen 1ef5b2202b Generalize the damage function and move some common variables between the various
object types into the base object type. This also makes the recently added minimum 
damage change apply to structures and features as well. See patch #1000.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4013 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 17:47:24 +00:00
Giel van Schijndel 1dac4a46a2 Split schema and data up into seperate SQL files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4012 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 15:57:04 +00:00
Dennis Schridde 303895e5fb Mark all BASE_OBJECT "derived" types as WZ_DECL_MAY_ALIAS (they may alias with any type).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4011 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 15:53:45 +00:00
Dennis Schridde fa416b55e3 Minor cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4010 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 15:44:11 +00:00
Giel van Schijndel fde3dff8ff Modify function `orderStateObj`:
* return a pointer instead of writing it to an output parameter
 * return NULL on failure instead of FALSE (and as such the above pointer on success)

This removes some type-punning warnings


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4009 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 14:44:03 +00:00
Dennis Schridde d58ef8fa12 Workaround stupid autoconf CFLAGS default
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4008 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 11:25:20 +00:00
Dennis Schridde bb5206dac7 update-po and add italian translation preview by doom3r with 35% percent coverage
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4006 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-11 00:14:36 +00:00
Giel van Schijndel a42740f02d Add player[1234567].[vs]lo to the ignore list for Aivolution's autogenerated files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4005 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 23:10:12 +00:00
Giel van Schijndel 08e68d9c54 Don't initalise the 'file' pointer with itself
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4004 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 23:06:00 +00:00
Giel van Schijndel dd0655b915 Make sure that xFullPathname uses SQLITE_OK as its return value for success (and SQLITE_IOERR for failure)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4003 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 23:05:38 +00:00
Giel van Schijndel add956c36d Change all 'trailGfx' columns that where '0' to NULL instead
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4002 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 22:58:02 +00:00
Roman C 5d2c9bb3ae When of the target is bigger than weapon damage the final damage is calculated as follows: damage / 3. It prevents situations when weapons with high ROF stop dealing any damage to their targets.
This addresses bug #11191.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4000 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 17:38:11 +00:00
Giel van Schijndel c4a62d5139 Rename sqlite3.diff to sqlite3.5.4.diff and update it to be a diff against r3997
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3999 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 17:00:31 +00:00
Giel van Schijndel fa47b4ff72 Revert r3997 (we now have the original 3.5.4 in SVN history, at r3997)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3998 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 16:57:11 +00:00
Giel van Schijndel 9e7ba7bc22 Oops, r3994 still had some of our changes in it (r3992 to be precise), so this __is__ the clean 3.5.4 version
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3997 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 16:55:01 +00:00
Dennis Schridde 65dd2bce19 Update the diff to r3995 to log the base revision inside the file (svn diff -r3994 sqlite3.c > sqlite3.diff)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3996 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 14:46:46 +00:00
Giel van Schijndel 4e9e8e60d6 Revert r3994 (we now have the original 3.5.4 in SVN history, at r3994)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3995 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 13:52:21 +00:00
Giel van Schijndel 64dd1a52c5 Revert to SQLite before all modifications (i.e. this is the amalgamation of 3.5.4)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3994 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 13:49:58 +00:00
Dennis Schridde cd14124c47 Fix a few strict-aliasing warnings and 2 types NETenum warnings (in multibot)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3993 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 13:31:08 +00:00
Dennis Schridde f0ab52dbd3 Fix some missing initialisers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3992 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 11:42:18 +00:00
Dennis Schridde d7bb157c7b Strip -Werror from WZ_CFLAGS for sqlite3, since there are far more warnings...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3991 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 11:10:35 +00:00
Dennis Schridde 50ecf5e339 YY_NO_INPUT is now set just where needed. Apparently I forgot to commit this before.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3990 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 11:09:41 +00:00
Giel van Schijndel e572024e84 Update ignore list for po/
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3989 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 10:52:52 +00:00
Giel van Schijndel 33216b2e9d Move all stuff that actually belongs in CPPFLAGS (but is called CFLAGS) to AM_CPPFLAGS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3988 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 10:50:58 +00:00
Giel van Schijndel 037471b784 Update sqlite3.diff for r3984
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3987 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 10:15:45 +00:00
Dennis Schridde d8409c9819 - Don't define CFLAGS anymore, export WZ_CFLAGS instead, which can be overridden by make commandlines
- Set -DYY_NO_INPUT only in those places where needed
- Add some previously forgotten CFLAGS where needed
- Remove extranous -lintl from WIN32_LIBS
- Remove apparently unnecessary directory from Mac include (png_util doesn't need it either)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3986 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 02:01:46 +00:00
Dennis Schridde 2b482d299f - Always use "locale" as LOCALEDIR on Windows (.mo files go into locale/<LANG>/LC_MESSAGES/warzone2100.mo, subdir in the location of the exe)
- Always use "data" as DATADIR on Windows (previous value was useless, even for non-Windows systems)
- Header cleanup


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3985 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 01:28:16 +00:00
Dennis Schridde 67247633e5 mutexIsNT() is never used -> warning -> error -> I remove it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3984 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-10 00:59:29 +00:00
Dennis Schridde 9f44219b1c Move addition of CFLAGS from configure.ac to the places they are actually needed.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3983 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 20:08:42 +00:00
Giel van Schijndel 0af1927488 Provide two functions (sqlite3_register_physfs_vfs and sqlite3_unregister_physfs_vfs) for registering and unregistering of the PhysicsFS implementation for SQLite's VFS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3982 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 17:04:42 +00:00
Giel van Schijndel 5bf53cd315 Relicense the PhysicsFS implementation of SQLite's (3.5+) VFS to the zlib license to be fully compatible with PhysicsFS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3981 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 17:04:35 +00:00
Giel van Schijndel 61a8df2e32 Remove a variable (psStartStats) that (indirectly) only ever referred itself
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3980 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 17:00:25 +00:00
Per Inge Mathisen ed27352982 Remove unused code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3979 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 16:41:37 +00:00
Giel van Schijndel 031e56a437 Some const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3978 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 16:24:16 +00:00
Per Inge Mathisen 496b2a73fd game.maxPlayers cleanup - remove unnecessary references.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3977 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 15:45:05 +00:00
Giel van Schijndel f7186877fe Some const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3976 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 15:20:02 +00:00
Giel van Schijndel 3e231c9f87 Don't use malloc followed by strcpy; use strdup instead
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3975 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 13:26:57 +00:00
Giel van Schijndel 92d34df524 Update the svn:ignore lists for the root dir, src/ and build_tools/autorevision/
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3974 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 12:27:18 +00:00
Giel van Schijndel 9aafb0bdf9 Update the svn:ignore lists for the lib/* directories
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3973 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 12:13:16 +00:00
Giel van Schijndel 93f7fc095a Update the sqlite3.diff for r3971
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3972 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 11:50:43 +00:00
Dennis Schridde 3f67498774 Prevent problem with the definition of DATADIR (wz' configure defines it to a string, what objidl.h does not like, because it uses that name as an identifier).
This also should cut down compilation a bit...


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3971 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 11:42:53 +00:00