Commit Graph

3142 Commits (dd8b729dc244d3ee4b577066ab931536a36f3a21)

Author SHA1 Message Date
Giel van Schijndel ccfcd0c7fb * Add a Doxygen \file directive to the definition header files, defining objects "derived" from BASE_OBJECT
* Make header guards of these files more consistent:
  * Make them match with the file's name where they didn't match before
  * Place the header guard's name in a comment at the #endif part of the header guard
  * Use a __INCLUDED_filename__ style for them
 * Replace some mixed indentation styles (spaces + tabs) with tabs only for indentation


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3598 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-30 15:19:02 +00:00
Giel van Schijndel 7c1614ab40 * Add the copyright owner of 07-bdrop.png to COPYING.README
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3597 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-30 14:48:32 +00:00
Giel van Schijndel 2b59e6840d Add a Doxygen parameter description to sound_PlayStreamWithBuf for fileHandle, volume, onFinished and user_data
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3596 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-29 13:05:38 +00:00
Dennis Schridde 4395c5972d The result from the non-wrapping, multiline source-refs commit.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3595 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 23:02:13 +00:00
Dennis Schridde d6ad58138c Make xgettext and msgmerge output strings as one, but sourcecode references on a seperate line each.
(a: easier to read, b: possibly less noise on line number changes)
I introduced MSGMERGE_OPTIONS to Makefile.in.in and set it to --no-wrap --width=1 to enforce that.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3594 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 23:01:21 +00:00
Dennis Schridde 1d364f9f23 update-po and again run de.po through poedit (I have to find out which options that uses to generate the file...)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3593 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 22:34:11 +00:00
Dennis Schridde 411545852f Cleanup
- theSun becomes static (+setter/getter)
- normalsOnTile() doesn't use global vars anymore
- pie_SurfaceNormal3fv() now works more like the pievector.h functions
- pie_SurfaceNormal3fv() was cleaned up and became inline function in piematrix.h
- Use more pievector.h functions
- Remove unnecessary multiplications/divisions from calcTimeIllum()


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3592 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 01:29:20 +00:00
Dennis Schridde 06a3b11a62 Revert r3588. I already did that in r3586.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3591 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:51:21 +00:00
Dennis Schridde 7f3c67175c Comment FP12
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3590 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:43:26 +00:00
Giel van Schijndel 7a2a5dbb82 make -C po update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3589 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:30:09 +00:00
Giel van Schijndel 7cf72b6fea #include <math.h> and "lib/framework/math-help.h" where required
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3588 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:29:19 +00:00
Dennis Schridde 751d0809c5 Use new VectorX_Compare instead of old VectorX_compare which I'll remove shortly.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3587 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:27:21 +00:00
Dennis Schridde 9f9c417240 Include lots of forgotten math.h and roundf() is included in C99.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3586 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:22:02 +00:00
Dennis Schridde 76fddad000 Generic cleanup. Mostly remove struct keyword where unnecessary.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3585 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-28 00:02:28 +00:00
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 e5885934b7 Utilise sound_PlayStreamWithBuf in cdAudio_OpenTrack to specify a larger buffer count
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3583 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 23:34:25 +00:00
Giel van Schijndel 024c8c1c10 Add function sound_PlayStreamWithBuf to allow specifying custom buffer counts and sizes to use for a stream
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3582 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 23:32:55 +00:00
Giel van Schijndel 98b9a33a58 Pause and resume cdAudio/playlist-audio when loosing and regaining focus
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3581 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 23:06:28 +00:00
Giel van Schijndel 6d99a49ef4 Use the sound_.*Stream functions to implement the cdAudio aka playlist code instead of custom crafted code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3580 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 22:31:16 +00:00
Dennis Schridde c399050b62 Enhance Vector class with some more normalisation, comparison, etc.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3579 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 22:21:15 +00:00
Giel van Schijndel f880720628 Implement sound_StopStream, sound_PauseStream and sound_ResumeStream for stopping, pausing and resuming of playing streams initially created with sound_PlayStream
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3578 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 21:33:10 +00:00
Giel van Schijndel 6de5602631 * Make sound_PlayStream and audio_PlayStream return a AUDIO_STREAM* pointer instead of a bool
This pointer can later on be used to stop, pause & resume playing of the given stream


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3577 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 21:28:35 +00:00
Per Inge Mathisen e0b92752db Constify some piematrix functions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3576 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 21:05:30 +00:00
Per Inge Mathisen 895ba1c8cd Make less of piematrix.c globally exported.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3575 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 20:57:26 +00:00
Per Inge Mathisen 8331618883 Clean out unused camera variable from renderer
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3574 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 19:31:58 +00:00
Per Inge Mathisen 75c77a4af4 Make drawing code less convoluted and store less state in tileScreenInfo.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3573 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 18:47:08 +00:00
Giel van Schijndel 1502e29c80 Include pkgconfig CFLAGS into our CPPFLAGS instead as they're really preprocessor options (as opposed to C compilation options)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3571 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 17:12:48 +00:00
Giel van Schijndel 0180eea2aa Remove a strange left-over like variable invocation from configure.ac
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3570 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 17:05:01 +00:00
Giel van Schijndel f7c58e57bb Replace some CFLAGS which where really intended for the preprocessor with CPPFLAGS instead
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3568 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 16:56:05 +00:00
Giel van Schijndel 301c7f64f5 Assume G++ has a proper vsnprintf and snprintf implementation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3566 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 16:34:39 +00:00
Per Inge Mathisen 2090ee5a12 Fix bug with colour changing of non-host players. A check was too strict.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3562 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 15:20:33 +00:00
Per Inge Mathisen 81633326db Add safe check on player colour packet, and return early if team packet check fails.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3561 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 15:09:41 +00:00
Per Inge Mathisen 6f2d7fce48 Port player colour packet to new netcode
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3560 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 15:04:55 +00:00
Per Inge Mathisen ace60fa7e5 Replace team request and fireup packets with new netcode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3559 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 14:25:30 +00:00
Per Inge Mathisen 15a22f8724 Remove unused netplay macros
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3558 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-27 13:45:03 +00:00
Per Inge Mathisen 7373c3a86b Do check for dead structure targets after the call to clean out the dead
targets from the previous frame. Bug reported by charon on IRC.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3557 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-26 18:50:12 +00:00
Roman C 0759f806ae Balance tweaks:
-increased fire power of some cyborgs to match the fire power of the weapons used for units
-decreased reload time for cyborg flamers
-increased weapon range of HPV Cyborgs

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3556 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-26 18:06:15 +00:00
Roman C 2d6afffae9 Stock AI:
-added some mini-pod templates to the AI template mix

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3555 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-26 17:35:03 +00:00
Roman C 52b75712d4 Balancing issues:
-reduced cyborg cost by about 15%

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3554 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-26 17:13:24 +00:00
Per Inge Mathisen dbb13706c9 Make EDIT_OPTIONS code compile again, and remove some unused code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3553 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-26 17:12:20 +00:00
Giel van Schijndel 0e375e50e9 Don't if (!condition) ASSERT(FALSE, ...); instead ASSERT(condition, ...);
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3552 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-26 16:45:30 +00:00
Giel van Schijndel d868ec0a50 * Make Win::HWND a "strong" typedef; this guarantees that code that just assumes Win::HWND is the same type as ::HWND (from <windows.h>) will fail to compile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3551 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-24 00:43:10 +00:00
Per Inge Mathisen 7c97e5752d Bring back the drop down of camera upon entering a new map in multiplayer.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3550 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-23 18:30:16 +00:00
Gerard Krol 280cc78ad2 Remove the hack that enabled us to use static shadows for walls, as this was causing corruption of the imds for tank traps and walls as described in
bug #9842 . This could degrade performance slightly.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3549 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-23 17:03:50 +00:00
Gerard Krol 9a27f4b7d0 Fix up the landing lights for bug #10204.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3548 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-23 16:23:27 +00:00
Gerard Krol 4bad68627d Initialise the camera position, so that it is not carried over from the previous game. This closes bug #10838.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3547 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-23 15:12:55 +00:00
Dennis Schridde 3c1a1512b7 Enable power generator after building oil-derrick, instead of when the build icon was clicked. (It is already too late then, it wont be displayed in the list.)
Additionaly:
- Remove soundBug event, which apparently was needed to workaround some bug in the sound system which no longer exists. (We can even pause in CALL_GAMEINIT, which apparently was not possible in 1.x.)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3545 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 22:05:37 +00:00
Per Inge Mathisen 3cbf515397 Clean up horrid indentation of giftSingleDroid(). Style change only.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3544 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 21:28:16 +00:00
Per Inge Mathisen 3a6bfab317 Fix more problems with tabs in the GUI, patch #949 by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3543 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 20:11:10 +00:00
Per Inge Mathisen 17f8c1b4c3 Fix port of gifts code to new net code. Transports can no longer be gifted away to
circumvent sleeping dragons in this code. Patch by Buginator in patch #939 with changes by me.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3542 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 19:49:03 +00:00