Commit Graph

349 Commits (d03a9c1fc3397a613be64167e18c86581823dfb4)

Author SHA1 Message Date
Per Inge Mathisen 5aa373e5b2 Misc cleanup forward ported from reference counting work. Adds new checking
macro CHECK_STRUCTURE().


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1912 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-21 17:43:50 +00:00
Giel van Schijndel b37345340b * r1866 removed piefunc.c from raw Makefiles instead of rendfunc.c: fixed
* removed rendfunc.c from POTFILES.in
 * `make -C po update-po` (raw makefiles still work for updating the gettext translation files)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1867 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-14 22:16:21 +00:00
Giel van Schijndel 7a4309c41c * update POTFILES.in for r1859
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1861 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-14 21:05:31 +00:00
Giel van Schijndel c0bddbb0e1 Add some translations to Dutch translation file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1822 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-05 12:46:50 +00:00
Giel van Schijndel ed73e62898 Leave the memory management up to the memory management functions!
That is:
 * Don't use a custom memory heap implementation anymore
 * Remove all usages of HEAP code and replace it with malloc/free

NOTE: MacOSX projectfile probably requires an update

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1820 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-05 11:46:00 +00:00
Giel van Schijndel 85dc22e592 make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1729 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-28 12:44:38 +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
Giel van Schijndel 1697d6a9e8 * Update POTFILES.in to deal with removal of netaudio_stub.c (r1625)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1627 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-13 13:28:28 +00:00
Dennis Schridde 7c7911c92f - Fix gameloop exit, broken in r1615
- Split input event handling


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1616 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-12 15:54:35 +00:00
Dennis Schridde ad57a3e0f4 Tiny translation update
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1610 4a71c877-e1ca-e34f-864e-861f7616d084
2007-05-12 09:25:01 +00:00
Giel van Schijndel 68abda7ae7 make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1567 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-30 18:00:08 +00:00
Giel van Schijndel bdb506f697 * move OggVorbis decoding functionality to oggvorbis.[ch]
* did _not_ add copyright statement for "Eidos" to new files since Eidos never wrote anything about this OpenAL/OggVorbis code (if anyone thinks I'm wrong in doing this, please say so on the mailinglist)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1566 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-30 17:58:27 +00:00
Giel van Schijndel d6758391d8 * Fix nameclash of <png.h> with lib/ivis_common/png.h
* renamed lib/ivis_common/png.[ch] to lib/ivis_common/png_util.[ch]

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1562 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-30 14:09:33 +00:00
Giel van Schijndel aff4430378 * Move PNG specific code to png.[ch] (PNG saving code still needs moving though)
NOTE: this _WILL_ require updating the MSVC project file

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1559 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-29 22:19:21 +00:00
Giel van Schijndel 4cae62ba78 * update POTFILES.in to match removal of bspimd.c in r1533
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1535 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-23 22:13:30 +00:00
Dennis Schridde 6d55622b75 Several changes to texture loading:
- Be safer with stringlengths
- Create "page-123" texpages in pie_Pagename(). This code is needed since WZ might have loaded a different variant of a texpage (-urban,-arizona,...) and thus can only find it by the common "page-123" part
- Output filename on errors in in PNG loading
- Be a little bit less forgiving for wrong case
- Convert all TEXTURE references in PIE files to lowercase and replace 'fx`s' with 'fx', also replace 'urban area' and 'bases urban' with just 'urban' to keep consistency


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1505 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-19 18:04:41 +00:00
Christian Vest Hansen c1917ef076 + updated Danish language translation to mirror recent additions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1491 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-17 21:11:08 +00:00
Dennis Schridde ba31124ecd Minor german translation update: ~60%
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1476 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-16 14:56:01 +00:00
Giel van Schijndel 1f405057ff * Fix incorrect po-file for Dutch translation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1473 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-16 13:46:33 +00:00
Giel van Schijndel 1d160dbfe0 * remove now unused functions for working with hashnames on audio tracks
* `make -C po update-po`

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1471 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-15 22:46:57 +00:00
Giel van Schijndel 0b359cf30b * Add a rudimentary Latin translation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1450 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-13 12:34:58 +00:00
Giel van Schijndel 50f7a4a019 * move a lot of multiplayer strings out of the string resource system into sources (with gettext markup)
* `make -C po update-po`
 * provide some translations for the Dutch translation

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1449 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-13 12:28:50 +00:00
Dennis Schridde 80d32d6c55 - svn:eol-style for .po files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1448 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-13 00:14:32 +00:00
Giel van Schijndel 79b8983220 * remove ^wrong^ rank translation of "Green" from Dutch translation (looks to much like translation for "Rookie")
* revert changes to po/Makefile.in.in from r1417
 * add some makevars to raw makefile system
 * add definitions of gettext macros P_ and NP_ to raw makefiles (and remove Q_ and Qn_)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1436 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 22:09:53 +00:00
Stefan Huehner 796eb23f27 remove buildpos.c and buildpos.h which are completely
enclosed by comments and have been since r1 (Initial Version)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1434 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 19:02:02 +00:00
Stefan Huehner f33eeb1413 inline the only function from ani.c in its only user (init.c) and remove
ani.c and ani.c altogether



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1429 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 18:13:08 +00:00
Stefan Huehner e40142efcb Remove the unused ptrlist implementation from gamelib
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1428 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 18:01:06 +00:00
Stefan Huehner 72e455e1a5 The powercrypt module prevented cheating power-value
in ram by storing a encrypted value and checking against
this.
It not of use anymore as the client is completely 
open-sourced now...
Removing the module and all references



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1425 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 17:43:46 +00:00
Dennis Schridde 751e6c44f7 Use pgettext instead of a custom implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1423 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 17:36:16 +00:00
Giel van Schijndel 79d4169bcd * fix two warnings in exceptionhandler.c
* add Q_ and Qn_ gettext macros (copied from Freeciv: GPL)
 * remove hack for ambiguous translations from droid.c; use Q_ instead
 * update makefiles accordingly
 * `make -C po update-po`

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1417 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 14:06:14 +00:00
Giel van Schijndel c31f807b94 * insert a hack into droid.c to circumvent ambiguity of the word "Green" (which is being used as a rank name as well as the color)
* `make -C po update-po`

PS The most feasible solution other than the above mentioned hack seems to me to use different gettext domains, I'm not sure how that should be implemented though

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1415 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-10 12:44:07 +00:00
Giel van Schijndel cc17299668 * remove internal forward declarations of functions already declared in the header
* use proper constness:
  * make some functions take arguments of `const char*` rather than just `char*` (also modified some functions' return values to return `const char*` where appropiate)
 * modify rank retrieval functions to use a central array instead; currently ranklimits (i.e. the amount of kills required to promote) is hardcoded in switch statements, as is the case with the names of those ranks
 * `make -C po update-po`

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1409 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-09 22:09:27 +00:00
Giel van Schijndel ee27f41be7 * add -Werror-implicit-function-declaration to CFLAGS
* Fix a spelling error in a string in src/droid.c
 * `make -C po update-po`

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1406 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-09 15:02:04 +00:00
Giel van Schijndel e1a839ced5 * add gettext generation support to raw makefiles (is far from nice, but works)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1385 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-06 01:51:07 +00:00
Dennis Schridde 0924497ba5 "do we really need all files listed twice there?"
- No we don't
- Another update-po just to be sure


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1384 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-06 00:45:02 +00:00
Giel van Schijndel 99adbf5010 some additional translations for NL
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1383 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-06 00:39:18 +00:00
Giel van Schijndel b8cac46766 * Update POTFILES.in to the deletion of pqueue in r1378 (btw, do we really need all files listed twice there?)
* Add Dutch translation

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1382 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-06 00:15:00 +00:00
Dennis Schridde e8de4b9927 - Purged English strings from Norwegian translation (Sorry if something is missing, I removed everything that looked english).
- Tiny update to german translation
- make -C po update-po


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1376 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-05 19:28:10 +00:00
Dennis Schridde 6d0ddd3cdd Danish translation by Karmazilla (Christian Vest Hansen).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1375 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-05 18:51:56 +00:00
Dennis Schridde 2650c696a5 Kills->Abschüsse (by Thomas Rast)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1373 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-05 18:29:07 +00:00
Dennis Schridde b2ca1a6825 Autopoint removal by Per.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1350 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-03 14:04:21 +00:00
Stefan Huehner 0e396d1f6a fix the build.
Remove the block.c and mem.c lines from POTFILEs.in as
well, as these files where removed completely.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1346 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-03 11:51:51 +00:00
Dennis Schridde ea74165cec A little bit more strings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1337 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-02 20:09:11 +00:00
Dennis Schridde 3867e71196 Very basic german translation.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1336 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-02 18:58:28 +00:00
Dennis Schridde 3b09a756df - Remove unneeded gettext files and instead create them via autopoint
- Remove unneeded checks from autogen.sh (all of them are also checked in configure.ac)
- Move AM_CPPFLAGS=-$(top_srcdir), which was included in nearly every Makefile, to configure.ac
- Remove -g from CFLAGS for usual builds. This should be set by the buildscripts instead
- Remove CFLAGS_OVERRIDE, which was rendered obsolete by the above change


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1332 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-02 17:21:05 +00:00
Dennis Schridde bd9eda5a69 Makevars had double content
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1330 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-02 15:00:10 +00:00
Dennis Schridde 0aa7cd1b8c Comply with the gettext manual and move path fallbacks to the common location
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1328 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 21:15:07 +00:00
Per Inge Mathisen f87e320bca Add partial Norwegian translation. To test, make sure you do a "make install"
and use "export LANG=nb_NO" before running Warzone.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1326 4a71c877-e1ca-e34f-864e-861f7616d084
2007-04-01 20:17:06 +00:00
Dennis Schridde c5e611767b Gettext support (0.16.1 included)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1310 4a71c877-e1ca-e34f-864e-861f7616d084
2007-03-31 15:34:35 +00:00