Commit Graph

2148 Commits (bb3975f0892bd49850f79de513ecee70e5d39a84)

Author SHA1 Message Date
Christian Ohm df7f2223d6 Compare locale names before claiming they differ
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8302 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:48 +01:00
Per Inge Mathisen 6e27d99815 Fix two spelling errors found by Debian scripts. Closes ticket:1010
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8300 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:48 +01:00
Per Inge Mathisen 6a09d348af Make addDumpInfo() parameter const
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8299 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:48 +01:00
Christian Ohm 6a3fce95f4 Use the "Mesa hack" only when OpenGL 1.5 isn't available
Mesa 7.6 provides OpenGL 1.5 support for ATI cards, so it isn't needed there
anymore.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8297 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:48 +01:00
Christian Ohm 1f52695730 OpenGL 2.0 is needed to query GLSL version
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8296 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:47 +01:00
Per Inge Mathisen ae9bc582be As seen in http://forums.wz2100.net/viewtopic.php?f=30&t=3922 there is a
fake limitation on the cost of a droid in the design screen. This patch
fixes it by an ugly hack in the widget code. Closes ticket:994
Patch reviewed and approved by Buginator.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8275 4a71c877-e1ca-e34f-864e-861f7616d084
2009-11-22 16:19:44 +01:00
Buginator 2ea2c754eb Up map packet size to 1K from 256 bytes
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8244 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-10 14:49:25 +02:00
Buginator 1f4e8a08ab Add openAL extensions, remove openAL attributes from Crash Dump info. Attributes were not useful.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8241 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-10 14:49:23 +02:00
Buginator d67909d9ed Add GLSL version to crash dumps to find out what people have, and also add a few more openGL 2+ checks to the LOG_3D dump.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8240 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-10 14:49:23 +02:00
Buginator 54a6690161 Make it more obvious as to what kind of build it was built from. (Debug or Release).
Fix a typo (regarding)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8239 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-10 14:49:23 +02:00
Buginator 6df5783314 Bad editor, bad! (it inserted wrong codes)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8215 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-06 22:10:00 +02:00
Buginator 9c23caf1b8 SUBLANG_ESTONIAN should have been SUBLANG_DEFAULT.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8214 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-06 22:10:00 +02:00
Buginator 0ec13ebdf5 Data Integrity is reimplemented. Version string has been updated, so the new data checks can work correctly.
If all players do not run the same mods or have the same data as the HOST, then they will be kicked.  This is done to prevent crashes to the game.

Closes ticket:961

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8213 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-06 22:09:59 +02:00
Per Inge Mathisen 6f0aaea8ad Remove unused code and correct PIE documentation. Number of texture animations and playback rates do not
and cannot vary between polygons, despite what parts of the code wants you to believe. This is good.
Patch reviewed by gerard_.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8190 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-04 19:01:56 +02:00
Per Inge Mathisen 889b9dfdf8 Clean up renderStructure() a bit to remove unused or duplicate code. Use OpenGL matrix commands to
avoid a lot of manual copying and transformation in pie_Draw3DShape2(), and make the function more
readable. Patch reviewed by gerard_


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8189 4a71c877-e1ca-e34f-864e-861f7616d084
2009-10-04 19:01:56 +02:00
i-nod 0b53b7c0d5 Added support for ATI-specific version of two-sided stencil extension (GL_ATI_separate_stencil) in pie_DrawShadows. Will decrease CPU usage when using ATI cards.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8186 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:21:12 +02:00
Christian Ohm 9edf766645 Estonian uses et_EE for locale, not ee.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8152 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:21:08 +02:00
Christian Ohm 6010fd1da8 Add Estonian translation by Erlando.
From http://forums.wz2100.net/viewtopic.php?f=6&t=3772

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8150 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:21:07 +02:00
Christian Ohm 429fb34bfb Check for alloca.h in configure instead of hardcoding it.
Patch from #817.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8132 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:21:07 +02:00
Christian Ohm 69fcd0195e GLee: Move function pointer typedef into GLX_ARB_get_proc_address ifndef.
This prevents a redefinition when the system headers already define it. Fixes

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8115 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:21:03 +02:00
Buginator 2c03546f87 partial revert of r5763
Clean up and fix 3D sound.
We now have true 3D sound that works correctly.

See ticket:920 for more information about the revert.

fixes ticket:220


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8098 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:21:01 +02:00
Buginator cd24361f83 revert r3270
Bring back all the missing screams that were mistakenly removed, and also bring back the yell for help, since that will be used soon.  (all removed in r3270)
Also reverts r8025 / r8030 (see ticket:830 for more info) since I didn't know the sounds were removed.


fixes ticket:830

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8097 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:21:01 +02:00
Per Inge Mathisen f9c98cfbc0 Add new scripting function droidCanReach(droid, x, y) that checks whether the given droid
can ever reach the given destination with its propulsion method. See ticket:838


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8072 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:20:55 +02:00
i-nod f9cb87f05a Changed widget definition to a hex style.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8070 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-28 22:20:54 +02:00
Buginator 4e41d11dba Fix minGW compiles on windows.
Patch by i-NoD.

Thanks for the patch!

Closes ticket:835


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8044 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:14 +02:00
Buginator 61763ee07d When a "looped" sample has finished playing, we reset iAudioID, so the game adds the sample again into the queue. This is the way most other "looped" samples are currently handled by the game. (oil/power/factory steam, and so on)
see:770
fixes:770


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8031 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:12 +02:00
Buginator 5eff6347d8 Fix cross-compiled builds again, by removing (commenting out) a invalid language option for cross compiled builds, LANG_LATIN.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8029 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:12 +02:00
Per Inge Mathisen 63589d31bf The following patch simplifies the screenInitialise function,
by removing some superfluous flags. This closes ticket:102
by EvilGuru, committing only the substantial parts to avoid
merge collisions with other trees.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8023 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:11 +02:00
Christian Ohm 5accd8f706 Commit the cleaned up version of Buginator's sound patch. Closes #770.
This fixes the removal of unused sources, which didn't work correctly before.
The number of sources is still not limited, but the number of sounds used
concurrently is much lower now.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8010 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:09 +02:00
Christian Ohm 715c6c6b69 Increase video buffer size from 4K to 256K.
This fixes playback of videos with a bitrate larger than ~2000kbps.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7979 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:05 +02:00
Per Inge Mathisen 87a6804af5 Purely cosmetic style cleanup of iniparser code. (There is active upstream to sync up against.)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7975 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:05 +02:00
Christian Ohm 9417ec60e1 Use _NSIG in the exceptionhandler if available. Fixes #818.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7971 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:04 +02:00
Christian Ohm 142f9bda38 Disable locales without translation.
Now only those languages in the "map" structs are used, and a new translation
has to be added to those structs to be available. Also remove the ASSERT when a
language is not in the struct and just return the language code instead.
Fixes #813.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7970 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:04 +02:00
Christian Ohm 3c875545d7 Fix crashdump creation.
Was broken in r7850 (#716). I reverted r7850 and then fixed the
-Wdeclaration-after-statement warnings instead of poking around trying to find
the problem.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7968 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:04 +02:00
Christian Ohm eb7f679ce3 Fix getLanguage to return the full "xx_YY" name, but still cut "xx_XX" to "xx".
Previously it would also cut "xx_YY" to "xx", so sublanguage selection didn't
work. Also fix the spelling of "Portuguese". Fixes #812.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7961 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:02 +02:00
Per Inge Mathisen dc6e361d9e Fix iniparser compilation on MSVC again. Patch by i-NoD in ticket:778
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7952 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:01 +02:00
Christian Ohm f7b14177e6 Change an ASSERT to ASSERT_OR_RETURN in sound_StopSample.
This fixes the segfault in the second crashdump in #703.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7945 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:07:00 +02:00
Per Inge Mathisen ba36ac6cfd Simplify build dependencies for iniparser to work around a problem in MSVC compilation reported by i-NoD.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7939 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:59 +02:00
Per Inge Mathisen 48ab59bb62 Oops. Forgot one file belonging to ticket:779
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7938 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:59 +02:00
Per Inge Mathisen 7f24bd6dfb iniparser: More const correctness. Make it output INI files using physfs.
scores.c: Make a function static.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7936 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:58 +02:00
Per Inge Mathisen c8e73a71a6 iniparser project for MSVC, patch by i-NoD, closes ticket:779
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7935 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:58 +02:00
Per Inge Mathisen e6dd86f63d Const correctness fixes for iniparser. This fixes warnings with recent versions of gcc
when iniparser_getstring() is used with a constant string as a fallback.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7917 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:55 +02:00
Per Inge Mathisen b549837969 Remove unused include
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7914 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:55 +02:00
Per Inge Mathisen 684444a031 Make iniparser work on physfs files instead of ordinary file paths.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7906 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:53 +02:00
Buginator 2f92b730ad Fix a typo in sound_SetObjectPosition() to use (...x,y,z) instead of (...x,x,x)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7903 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:53 +02:00
Per Inge Mathisen f55c3ad471 Add INI file parser (iniParser -- version 3.0b (beta) by N.Devillard)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7902 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:53 +02:00
Giel van Schijndel 7952b39be8 netplay address printing:
* Don't cast if we can safely alter the format specifiers
 * Fix a spelling error: 'address famliy' -> 'address family'

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7897 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:52 +02:00
Christian Ohm 732a030544 Undef _XOPEN_SOURCE before including config.h in wzglobal.h.
Override the system headers, since autoconf defines this when needed.
Fixes #544.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7874 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:36 +02:00
Christian Ohm 383d8612be Add missing languages for getLanguageName, and if a language is missing, show
it in the assert. Fixes #673.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7869 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:34 +02:00
Christian Ohm cb1497c259 Fix a few spelling errors reported by Paul Wise.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7859 4a71c877-e1ca-e34f-864e-861f7616d084
2009-09-27 19:06:33 +02:00