Commit Graph

3188 Commits (2b482d299f182937cf84de91e14dc6b287590248)

Author SHA1 Message Date
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
Per Inge Mathisen 8d2c9939f2 Set max number of effect back to 2500 to improve fireworks. Based on patch by Buginator in patch #994.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3969 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 10:51:26 +00:00
Per Inge Mathisen 2904483187 Cosmetic cleanup of effects.c|h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3968 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 10:43:22 +00:00
Per Inge Mathisen 916435094f Add message to MSVC users about disabled warnings. Patch #995 from Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3967 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-09 10:06:05 +00:00
Giel van Schijndel c620910020 Add some SQL VIEWs to extract data in a similar way as how it's stored in the CSV files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3966 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 22:24:26 +00:00
Giel van Schijndel cb470b1697 * Convert the 'structureweapons.txt' stats to the SQLite database
This addresses #2 ( http://trac.wz2100.net/ticket/2 )


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3965 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 21:32:52 +00:00
Giel van Schijndel e4ac82a18a Update comment to mention which table.column is referred by an integer ID value in the structures table
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3964 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 21:10:17 +00:00
Giel van Schijndel e4af0a7735 * Convert the 'structures.txt' stats to the SQLite database
This addresses #2 ( http://trac.wz2100.net/ticket/2 )


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3963 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 21:08:49 +00:00
Giel van Schijndel 30f2e438c0 * Convert the 'sensor.txt' stats to the SQLite database
This addresses #2 ( http://trac.wz2100.net/ticket/2 )


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3962 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 20:54:47 +00:00
Giel van Schijndel e944a82dae * Convert the 'ecm.txt' stats to the SQLite database
This addresses #2 ( http://trac.wz2100.net/ticket/2 )


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3961 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 19:29:20 +00:00
Giel van Schijndel 4cfa907249 * Use NULL where appropriate
* Fix a typo in a column name


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3960 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 19:10:59 +00:00
Giel van Schijndel b221414e8e Convert the 'body.txt' stats to the SQLite database
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3959 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 18:40:07 +00:00
Giel van Schijndel b467d49a2e Fix the MSVC project file for sqlite3; patch by Buginator
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3958 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 18:24:20 +00:00
Giel van Schijndel f940f4624b * Convert the 'construction.txt' stats to the SQLite database
* Fix some comments


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3957 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 16:25:46 +00:00
Giel van Schijndel f55d9ac013 Convert the 'brain.txt' stats to the SQLite database
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3956 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 16:09:20 +00:00
Giel van Schijndel a85ec7ad90 Set svn:eol-style on physfs_vfs.[ch]
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3955 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 15:45:18 +00:00
Giel van Schijndel 84b03f9468 Allow compiling of sqlite3.c by disabling -Wmissing-field-initializers when compiling in lib/sqlite3/
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3954 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 15:26:48 +00:00
Giel van Schijndel ae88c9de7b Fix the Code::Blocks project file so that it compiles properly on GNU/Linux as well
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3953 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 15:26:41 +00:00
Giel van Schijndel dc79c672e5 Add the PhysicsFS VFS to the Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3952 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 14:25:12 +00:00
Giel van Schijndel 9b71eb9821 Add a partially completed SQLite VFS (requires SQLite 3.5+) implementation for PhysicsFS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3951 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 14:23:07 +00:00
Dennis Schridde 3858daf4a1 Reset MSVC version from 9 to 8, since otherwise MSVC8 will refuse to load the project files. (bug #11219)
Does MS provide some kind of templating system? Like autotools generate Makefiles from Makefile.am.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3950 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 11:28:40 +00:00
Dennis Schridde d3455b699a Properly set include/library directories for MSVC
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3949 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-08 01:45:45 +00:00
Dennis Schridde 056147b16d Oh my beauty...
Please don't clutter the detection code with platform specific fixes... That's what the /* ---- Platform specific setup ---- */ section is for...


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3948 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 21:51:53 +00:00
Per Inge Mathisen dfad738d65 Fix most MSVC warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3947 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 19:26:19 +00:00
Dennis Schridde 0c79f4b551 Simplify roundf() guards
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3946 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 18:45:56 +00:00
Per Inge Mathisen d8787a14e9 Allow for non-GNU C99 compilers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3945 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 18:37:59 +00:00
Per Inge Mathisen 51ca960ed5 Add -Wmissing-field-initializers, fix missing field initializers, and make source
compile even if GCC is not C99 compatible.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3944 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 18:27:43 +00:00
Dennis Schridde 7b92747cb9 Cleanup effectDroidUpdates()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3943 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 16:07:15 +00:00
Dennis Schridde a2548cf796 Create empty rules for player0.* to prevent circular dependencies
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3942 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 16:03:02 +00:00
Dennis Schridde be2c50b0fe Cleanup updateCameraAcceleration()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3941 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 15:46:58 +00:00
Dennis Schridde 1c52c14833 Whitespaces
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3940 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 15:15:27 +00:00
Dennis Schridde a8dc02f672 Generic cleanup, often variable initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3939 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 15:09:03 +00:00
Dennis Schridde dd8b729dc2 Part of patch #973: Don't update athmosphere particles when paused.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3938 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 13:08:04 +00:00
Dennis Schridde da462b4511 More float specialisation and generic cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3937 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 12:42:42 +00:00
Dennis Schridde 134fa94a8c Use float math functions where only float precision is required.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3936 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 12:18:06 +00:00
Dennis Schridde 8fc819377a Move generic math functions from trig.h to math-help.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3935 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 12:17:11 +00:00