Commit Graph

3138 Commits (301db83ea011efcb8cfd5f3c7f81349412bf48a9)

Author SHA1 Message Date
Dennis Schridde 301db83ea0 Use sqrtf for float values (has an actual speed gain).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3934 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-07 11:59:26 +00:00
Per Inge Mathisen 527244e5a3 Move sensor and ECM information into base object definition. Add convenience
functions to structures as well, and wrap some more uses. Remove the 2.1 ECM hack
that limited range by a third if ECM was higher than sensor power in expectation
of future work.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3933 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-06 22:06:06 +00:00
Per Inge Mathisen cf36c8a87d Add droid sensor convenience functions, and rename structure ECM modifier to be
the same name as that of droids.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3932 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-06 21:37:47 +00:00
Dennis Schridde a7c529cce2 Port r3930: Aivolution, not AIVolution.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3931 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-06 17:12:41 +00:00
Per Inge Mathisen a433f0c362 Add new tool: 3ds2wzm to convert from 3DS MAX to WZM format.
3ds2pie: Fix calculation of number of levels to import.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3929 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 21:23:23 +00:00
Per Inge Mathisen db3d0fc7f0 wzmviewer: Interpolate positions between frames for bone heap animation to
make animation smooth.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3928 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 20:36:43 +00:00
Per Inge Mathisen f45da9872b Fix memory leak in WZM code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3927 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 20:00:36 +00:00
Dennis Schridde a3284e7a7d Port r3921 till r3924:
- Move VISIBLE_XTILES from src/ to lib/ivis_common/, so we don't have to hardcore mapview sizes in piedraw.c...
- Make INTERFACE_DEPTH/MAX_Z int, since that's what they are used as.
- Remove unused defines
- Less fog and more shadows


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3926 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 19:30:29 +00:00
Per Inge Mathisen d632cadb8a Add WZM -> 3DS converter.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3925 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 19:27:47 +00:00
Per Inge Mathisen 6bec88ac91 wzmviewer: Reorganize source code for easier maintenance and reuse.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3920 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 18:29:33 +00:00
Dennis Schridde e1236da028 Port r3916 and r3917: LAND_XGRD was another name for VISIBLE_XTILES -> remove it + Replace most instances of VISIBLE_XTILES with visibleTiles.x
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3919 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 18:09:12 +00:00
Dennis Schridde 73581e05b3 Apply patch #991
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3918 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-05 18:05:57 +00:00
Dennis Schridde 431a6d03ee Port r3913: Fix bug #10913: Also set LC_CTYPE (here: LC_ALL, just in case) to locale, otherwise character conversion would not take place and special characters would be returned as '?' by gettext.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3915 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-04 15:04:16 +00:00
Dennis Schridde a854a84ae1 Port r3912: Replace GLC_ with _glc to prevent confusion and use GLC_UTF8_QSO as string type.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3914 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-04 15:03:18 +00:00
Roman C c747bbe231 A better fix to bug #11084, last one was buggy.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3909 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-03 22:02:24 +00:00
Dennis Schridde c796c09971 sMove.iAttackRuns is UDWORD and thus should get endianized like that, since it is a potential bug... Reported on IRC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3907 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-03 19:13:09 +00:00
Roman C 5afe39703c Updated ChangeLog in the Trunk.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3905 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-03 18:28:04 +00:00
Roman C 43ff0c209a Fixed a bug that made WZ crash during save when Aivolution was enabled (reported on forums).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3903 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-03 18:09:18 +00:00
Dennis Schridde 4e520d46fc Patch #991 by Buginator: Update MSVC .sln for sqlite3
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3902 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-03 11:35:30 +00:00
Giel van Schijndel b9725d9e48 Add the sqlite3 directory to the MSVC project file (patch #991 by Buginator)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3901 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-03 08:54:06 +00:00
Giel van Schijndel bbf9076f5c add sqlite3.h and sqlite3ext.h to the Code::Blocks project file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3900 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-03 01:06:54 +00:00
Ari Johnson a67a6660f1 Updated Xcode project to include SQLite
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3899 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 23:23:33 +00:00
Giel van Schijndel 5e5426e88b Fix a small typo in 'oinst_LIBRARIES' -> 'noinst_LIBRARIES'
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3898 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 22:45:44 +00:00
Giel van Schijndel 8425a89dbc * Add SQLite 3.5.4 to the source tree (3.5.6 gives some warnings @ compile time which I don't trust)
* Patch it up so that the compiler doesn't generate 'cast to pointer from integer of different size' warnings (as these are harmless, but annoying if -Werror triggers compiler failure)
 * Add this patch as lib/sqlite3/sqlite3.diff (to be able to keep track of it)
 * Add it to the autotools, raw makefiles and Code::Blocks build systems, XCode and MSVC (and any others I'm forgetting here) still need updating


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3897 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 22:37:25 +00:00
Giel van Schijndel 77dbc4f2d2 Set svn:ignore and bugtraq:* properties on directories
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3896 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 22:21:30 +00:00
Per Inge Mathisen e042cf4ebf wzmviewer: Bone heap animation support. Add some safety checks.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3895 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 22:20:16 +00:00
Giel van Schijndel 2dccdd6711 The SQLite DB will need to be locked __before__ modifying it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3894 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 21:12:56 +00:00
Giel van Schijndel db4896b8cc Remove old database junk (from the original M$ Access DB)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3893 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 19:09:50 +00:00
Giel van Schijndel 799bc88f1c Dump all the weapon stats in an SQLite database
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3892 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 19:08:24 +00:00
Per Inge Mathisen ad5851f3bf wzmviewer: Add support for displaying texture animations.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3891 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 16:39:23 +00:00
Giel van Schijndel 4af0adbec4 Add some "release notes" containing some status info about the current status of 2.1
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3890 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-02 14:02:47 +00:00
Per Inge Mathisen 70483d1c82 Remove unused code. Make some variables static.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3889 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 23:44:17 +00:00
Roman C 2465552376 Aivolution AI:
-made AIV research all tech necessary for the newly added heavy templates
-tweaked templates a bit

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3887 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 18:12:38 +00:00
Roman C bc9e5fa1de Stock AI:
Ported fix to bug #11122 from Branch to Trunk (player0.slo was already fixed in r3875).

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3886 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 18:11:04 +00:00
Dennis Schridde 377adc40d6 Another backdrop named "My Pet Turtle" by Cathuria from the "A paltry 30k polys" thread http://forums.wz2100.net/?topic=1361.0
License: CC BY-SA 3.0, as allways.
The border and logo look quite good ingame, so 07-bdrop.png should get that, too.
Also: Use a highres version of 07-bdrop.png, also by Cathuria
Also: Change COPYING.README style a bit


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3884 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 13:18:44 +00:00
Dennis Schridde ba45aa1ea7 Port r3880 from /trunk/ - Credit N.E.W.S.T. for their tiles, and mention Frank Lamboy / RMan for giving this permission
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3883 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 13:05:06 +00:00
This file is free software, distributed under the terms of the GNU 90f0c23fc9 Port r3878 and r3879 from trunk/
Update gettext.h to 0.17. This changes its license from LGPL2+ to GPL2+ !

Update gettext files to versions found in 0.17

Deleted:
m4/ulonglong.m4 - Superceeded by longlong.m4
m4/signed.m4 - Had no users
m4/isc-posix.m4 - Superceeded by autoconf-2.53
m4/inttypes.m4 - Had no users
m4/longdouble.m4 - Also unneeded

m4/intmax.m4, m4/lib-prefix.m4, m4/lib-link.m4, m4/printf-posix.m4, m4/xsize.m4, m4/lib-ld.m4, m4/lcmessage.m4, m4/wint_t.m4, m4/inttypes-pri.m4, m4/progtest.m4, m4/uintmax_t.m4, m4/stdint_h.m4, m4/intdiv0.m4, m4/iconv.m4, m4/po.m4, m4/longlong.m4, m4/size_max.m4, m4/glibc21.m4, m4/inttypes_h.m4, m4/codeset.m4, m4/wchar_t.m4, m4/nls.m4
change in license from:
 This file is free software, distributed under the terms of the GNU
 General Public License.  As a special exception to the GNU General
 Public License, this file may be distributed as part of a program
 that contains a configuration script generated by Autoconf, under
 the same distribution terms as the rest of that program.
to:
 This file is free software; the Free Software Foundation
 gives unlimited permission to copy and/or distribute it,
 with or without modifications, as long as this notice is preserved.

This removes any GPL licensed files from m4/

po/Makefile.in.in recieved my MSGMERGE_OPTIONS again after update.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3882 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 13:04:16 +00:00
Dennis Schridde 43fb8fd0d9 Add fixme for bug #11095.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3877 4a71c877-e1ca-e34f-864e-861f7616d084
2008-03-01 01:24:45 +00:00
Roman C 7daf3f093c Restore stock AI for player 0 which was overwritten by Aivolution in r3873.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3875 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-29 20:22:58 +00:00
Roman C 295d1e40e8 Fixed bug #11097 ("Ai opponents use the medium yellow body all the time").
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3873 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-29 20:18:13 +00:00
Roman C cc3c372bdf Aivolution:
revert changes done to player0.slo after 3841, since it reverted bug fix to bug #11085, which was applied in r3840.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3871 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-29 20:00:12 +00:00
Dennis Schridde 9b81337df9 Why did QuesoGLC/fontrendering only work on Mac OS X? Because the texture was set conditionaly for it only.
This applies patch #961 correctly and thus closes it.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3867 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-25 21:58:35 +00:00
Per Inge Mathisen d0a0b225ef Fix memory corruption bugs in structure limits code. Reported by several.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3865 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-24 15:31:50 +00:00
Dennis Schridde f92b8fc5b4 PCRE is not supported by every grep as it seems, so expand \s to [[:space:]].
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3860 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-23 14:33:18 +00:00
Dennis Schridde 9fec1a998e Use QLayout instead of fixed size.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3859 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-23 12:25:37 +00:00
Dennis Schridde 2c10e37c49 Add Slider/SpinBox combination to set model scale. Closes patch #986 (but differs from it).
Also fix minimum/maximum sizes to prevent resizing of the window.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3858 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-23 11:44:36 +00:00
Per Inge Mathisen bbae49f687 Fix two erronous png references in model files.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3857 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-22 23:11:21 +00:00
Gerard Krol 0b07130da8 Fix bug #11121, "Briefings not displayed at high resolutions".
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3855 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-22 20:34:03 +00:00
Per Inge Mathisen 548653d0d0 Add ECM range parameter. Clean up ECM code. Remove cyborg stealth hack from
trunk in anticipation of future ECM work.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3854 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-22 19:13:13 +00:00
Per Inge Mathisen 69e71c5778 3ds2pie: Add option to scale imported model by a given factor to correct errors
seen in Blender 3DS export.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3853 4a71c877-e1ca-e34f-864e-861f7616d084
2008-02-22 18:47:21 +00:00