Commit Graph

44 Commits (79db811b585e8e914e9c3100ca9a23f9f8b8d48a)

Author SHA1 Message Date
Giel van Schijndel b3a3cecaed Rename fractions.h to math-help.h and remove most junk from it
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3584 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:01:37 +00:00
Giel van Schijndel 6b3f0e28ae Remove src/gatewaysup.c from Code::Blocks project file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3535 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 01:00:38 +00:00
Giel van Schijndel 71bc4ff8be * Remove useless cdspan code (was only a wrapping function for audio_PlayStream)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3327 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 19:38:06 +00:00
Giel van Schijndel 06dab81c11 * Update Code::Blocks and MSVC project files to complement the cleanup of sequence code in r3162
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3163 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 16:31:51 +00:00
Giel van Schijndel bffd531dd7 * Remove unused file src/optimisepath.[ch]
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3153 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-24 14:02:13 +00:00
Giel van Schijndel 16ebf893ba * #Define PACKAGE_VERSION instead of VERSION in the Code::Blocks project file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3125 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-22 19:48:10 +00:00
Giel van Schijndel 99c55dbf74 * Try to encapsulate knowledge about AUDIO_SAMPLE's internal representation in openal_track.c (i.e. don't use it in client code!)
* Look at sound_StopSample specifically
 * Use a function to manipulate the linked list of audio samples (i.e. get rid of duplicated code)
 * Allow printing of OpenAL vendor, version, renderer and extensions data on multiple debug "channels" to reduce code duplication
 * Add openal_error.[ch] for error detection (and producing debug messages for them!)
 * Add TOSTRING and AT_MACRO macros to macros.h
 * Get rid of some super-nested if-branches where one of them would return (so we don't actually need an else-branch because the function is left anyway)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3047 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-13 23:16:03 +00:00
Freddie Witherden 6844b2e510 Update the Code::Blocks and MSVC project files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3012 4a71c877-e1ca-e34f-864e-861f7616d084
2007-12-09 13:33:47 +00:00
Giel van Schijndel 2759edba4b * Make sure to add SDL/ to the include search path (while compiling on Windows)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2905 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-30 15:47:43 +00:00
Freddie Witherden b73b28f191 Revert dodgy removal of trig functions. More testing required
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2904 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-29 23:10:54 +00:00
Freddie Witherden dbcb55414d Remove the pre-computed trig tables system
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2903 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-29 22:50:25 +00:00
Giel van Schijndel d648927a13 * Update Code::Blocks and MSVC project files to match the deletion of lib/gamelib/maxpidef.h in r2850
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2851 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-22 08:38:07 +00:00
Giel van Schijndel 9df7ace6a3 * Update Code::Blocks and MSVC project files to match the deletion of src/player.[ch] in r2847
* Update po/POTFILES.in to match the deletion of src/player.[ch] in r2847


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2848 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-21 21:17:42 +00:00
Giel van Schijndel 6083c030bf * revert (unnecessary r2843)
* make sure to #define _GNU_SOURCE when compiling on Unix systems with Code::Blocks


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2845 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-20 21:36:36 +00:00
Giel van Schijndel 0119374042 * Update Code::Blocks and MSVC project files to match the deletion of src/findpath.[ch] in r2829
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2831 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-18 21:24:14 +00:00
Giel van Schijndel 07faf0166e * Remove lif/ivis_opengl/pietexture.[ch] from the Code::Blocks project to complement r2820
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2825 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-15 17:59:07 +00:00
Giel van Schijndel 7711572f0a * Add a new module (printf_ext.c) to contain some printf extensions (C99 printf variants for MSVC)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2803 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-11 20:58:10 +00:00
Giel van Schijndel ed950825a9 * Utilize the Popt library for command line parsing
* Add popt as a build dependency to build systems:
   * autotools
   * Debian package build-depends
   * raw Makefiles
   * Code::Blocks project file
 * Make ParseCommandLine and ParseCommandLineEarly const correct
 * Rewrite ParseCommandLine and ParseCommandLineEarly to utilize Popt


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2800 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-11 17:59:32 +00:00
Giel van Schijndel 03c4fd6256 * Add version.[ch]
* this module uses the information extracted from the automatically generated file src/autorevision.h to add revision information to the project
  * provides a function version_getFormattedVersionString() which replaces several pieces of customly crafted code to dump a version string (frontend.c, main.c and clparse.c)
 * update po/POTFILES.in
  * add some recently added files
 * make -C po update-po


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2723 4a71c877-e1ca-e34f-864e-861f7616d084
2007-11-05 02:31:09 +00:00
Giel van Schijndel 673812b2a4 * Add file strlfuncs.h; this file contains an inline implementation of strlcpy and strlcat (safer variants of strncpy and strncat respectively)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2627 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-26 17:05:29 +00:00
Giel van Schijndel 5707e8ed99 * Enable NLS (Native Language Support) when compiling with Code::Blocks
* Link against libintl
   * #define ENABLE_NLS

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2622 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-25 17:41:44 +00:00
Giel van Schijndel b26a610760 * Add AutoRevision to Code::Blocks project file
* Utilize AutoRevision to create src/autorevision.h when building (pre-build step)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2621 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-25 17:39:30 +00:00
Giel van Schijndel ec353ec182 * Add lib/framework/tagfile.[ch] to Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2588 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-22 20:07:39 +00:00
Giel van Schijndel d075832459 * Add font rendering and UTF-8 support through usage of QuesoGLC (an OpenGLC implementation);
* This _will_ require you to install http://quesoglc.sourceforge.net/ on your system to be able to compile (windows binaries are provided on the sourceforge download page as well; just dump them in wz's devpackage directory for now)
 * Currently the font render code is hard-coded to select two fonts: DejaVu Sans Mono regular style (aka "Book") or bold style; if you're package manager doesn't provide these fonts (Debian and derivatives have "ttf-dejavu"), you can get them from http://dejavu.sourceforge.net/

This closes #1 (https://trac.mortis.eu/warzone/ticket/1 I dumped/maintained my patch there)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2521 4a71c877-e1ca-e34f-864e-861f7616d084
2007-10-01 19:45:49 +00:00
Giel van Schijndel 470ea85417 * Remove lib/framework/utf8.c[ch] as we don't need it just right now (we can always revert this commit later on if necessary)
* This commit removes utf8.[ch] from all build systems (manual text-editing for the most of them)
 * For the removal from the XCode project I just reverted r2288

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2477 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-25 19:46:10 +00:00
Giel van Schijndel f99cd3e326 * Fix Code::Blocks object output directories
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2471 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 19:34:03 +00:00
Giel van Schijndel 244842406c * Add dual platform support to Code::Blocks project file (now supports both Linux and Windows, requires a rather recent version of Code::Blocks though)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2470 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 19:16:58 +00:00
Giel van Schijndel 33b5764611 * Rename winmain.h to main.h since all it's forward declarations refer to main.c and having nothing whatsoever to do with MSWin
* Remove forward declaration of "BOOL frontendInitialised" since it is nowhere defined

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2469 4a71c877-e1ca-e34f-864e-861f7616d084
2007-09-24 18:16:10 +00:00
Giel van Schijndel dc8ead56ff * Add virtual target "All" to Code::Blocks file (automatically compiles both a Debug and a Release build)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2419 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-20 14:34:38 +00:00
Giel van Schijndel b95b607976 * Revert unintentional changes to Code::Blocks projectfile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2359 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 18:52:49 +00:00
Giel van Schijndel 74e64738fa * Add network primitives by Freddie Witherden <EvilGuru>
* Modify them slighly to use get/set functions for the package direction (instead of a global accessable to all files which forward declare it)
 * Add a NETfloat to the set of primitives
 * Modify NETstring to use strnlen1 instead of strnlen which is a GNU extension to the C library (strnlen1 has been copied from gettext 0.16.1 which is GPLv2+)
NB: rerun your buildsystems
NB2: Xcode requires an update

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2358 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-08 18:50:28 +00:00
Giel van Schijndel fc8ab2c14e * Remove CursorSnap code; it was this code that was responsible for "snapping" the mouse cursor when switching menus
* This removes csnap.[ch] (removed from automake/autoconf, Code::Blocks, MSVC)
Patch #789 by Ken Rushia (with some minor additions & changes by me)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2344 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-05 11:42:59 +00:00
Giel van Schijndel 566ed75daf * Add -std=gnu99 to the compiler options
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2317 4a71c877-e1ca-e34f-864e-861f7616d084
2007-08-02 14:51:39 +00:00
Giel van Schijndel 38a82a2ada * Add UTF-8 encoder (the decoder is a WIP)
* Add files lib/framework/utf8.[ch] to autoconf/automake, raw makefiles, Code::Blocks and MSVC
NOTE: this may require updating of some additionaly buildsystems (e.g. OSX)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2281 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-30 14:02:05 +00:00
Giel van Schijndel 393e753f60 * Update buildsystems for the addition of lib/netplay/nettypes.[ch] in r2160:
* autoconf/automake buildsystem
  * raw makefiles
  * Code::Blocks project file
 * lib/netplay/nettypes.[ch]:
  * set svn:eol-style and svn:mime-type
  * add a GPL header to the file
  * add include guards to the header file (nettypes.h)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2245 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-28 13:41:51 +00:00
Giel van Schijndel 99be7db2f4 Update Code::Blocks project to match:
* removal of bullet.h in r2060
 * renaming of base.h, bulletdef.h and weapons.h to basedef.h, projectiledef.h and weapondef.h respectively in r2063

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2080 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-13 23:12:34 +00:00
Giel van Schijndel 12c3d78559 * Add "-Werror-implicit-function-declaration" to Code::Blocks project compile options
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2000 4a71c877-e1ca-e34f-864e-861f7616d084
2007-07-02 11:03:41 +00:00
Giel van Schijndel 39db2bef4b * Update Code::Blocks and MSVC projects to removal of lib/netplay/netcrypt.c in r1953
* Remove lib/netplay/netcrypt.c from the list of files to extract translatable strings from for gettext


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1954 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-24 13:46:29 +00:00
Giel van Schijndel eeeedf36ed * Warzone is a GUI application, so set this in Code::Blocks so that M$Win doesn't produce a console window
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1948 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 19:08:48 +00:00
Giel van Schijndel e4e5233a44 * Revert changes to Code::Blocks projectfile in r1915
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1936 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-23 12:34:07 +00:00
Giel van Schijndel 1779c3f364 * Add two other Code::Blocks files (projectfile.depend, projectfile.layout) to ignore list
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1915 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-22 11:06:35 +00:00
Giel van Schijndel 830751b056 * Update Code::Blocks project file to 1.6 format
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1881 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-18 23:28:11 +00:00
Giel van Schijndel 0fc5249f79 Use correct include variable ($includes instead of $include) for custom build commands
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1880 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-18 21:45:12 +00:00
Giel van Schijndel da8d699f03 * Add Code::Blocks project file
This currently compiles clean on GNU/Linux (disables gettext though), I haven't tested Windows yet.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1879 4a71c877-e1ca-e34f-864e-861f7616d084
2007-06-18 17:15:45 +00:00