Commit Graph

5227 Commits (4cae3b8f1b623115ab8a20e4720789bc71a8e72f)

Author SHA1 Message Date
Per Inge Mathisen 4cae3b8f1b Improve handling of an error in NETsendfile reported in issue #215. Add TODO about
rewriting this whole function and reference to ticket.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6580 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-03 17:02:17 +00:00
Giel van Schijndel 449d93267e * Add CSV field entries for ECM, REPAIR and BRAIN
* Generate SQL INSERT statements from CSV data for ECM
  - REPAIR and BRAIN are still "exceptional" cases requiring syntactical extensions to the DB mini/meta language

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6579 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-01 19:10:29 +00:00
Giel van Schijndel 94cf481e0f Override operator<< for std::ostream (left operand) and PHYSFS_Version (right operand) instead of using a plain function to perform the version formatting
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6578 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-01 12:13:00 +00:00
Giel van Schijndel db0e543f40 * Fix warnings about "possibly dangerous code" added in r6570:
- Don't ignore write(2)'s return value, instead handle it properly to deal with the cases where write(2) gets interrupted (by a signal) or returns prematurely because of non-blocking I/O
  - Properly handle popen(3) returning NULL
 * Don't assume the data written to stdout by "which" will just fit in our buffer

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6577 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-01 11:54:25 +00:00
Guangcong Luo eccab0f6af The rest of my naming inconsistency fixes
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6574 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 20:05:05 +00:00
Buginator ae27065c85 Fixes ticket #237
Using C99 declaration instead of C98.
 

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6573 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 19:44:15 +00:00
Dennis Schridde ed2a2011f6 Improve preprocessor checks for type definitions
* Check for C99 instead of !MSVC where we deal with C99 stuff
 * C++98 defines bool as well
 * Move BOOL after the bool checks, so we could define it to bool more easily

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6572 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 15:51:47 +00:00
Dennis Schridde e88fb88376 Detect C++98 and do not mix feature detection code with platform hacks (!!)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6571 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 15:51:43 +00:00
Dennis Schridde d585762747 Add a few warnings about possibly dangerous code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6570 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 15:51:39 +00:00
Dennis Schridde 98842001af Use bool instead of BOOL where the latter is not required
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6569 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 15:51:35 +00:00
Dennis Schridde 30044e860c Fix usage of BOOL which should have been int instead
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6568 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 15:51:31 +00:00
Dennis Schridde bb5d6bec73 Remove unused variable
fixes #236, caused by r6566

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6567 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 14:39:36 +00:00
Buginator 6440d68d2c Closes ticket #131
Adds weapon range display to the sensor display routine.
Function was split for future enhancements.

This is *not* meant to be played with it enable all the time, as you know, it is a severe resource hog, and it is mainly helpful for modders, to check what the range of the weapons & sensors are.

NOTE: it only shows range for *first* weapon slot.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6566 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-31 06:20:22 +00:00
Dennis Schridde 9377726dec Make configure warning complain about correct sqlite3 version number
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6565 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-30 20:56:01 +00:00
Dennis Schridde f9ef8289a4 Bump SQLite3 to 3.6.10
An change was introduced on sqlite3_vfs which causes an incompatible
 pointer error when mixed with older sqlite versions. Thus bump the
 required version to 3.6.10 as well.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6564 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-30 18:28:21 +00:00
Giel van Schijndel b4d7219970 Update trunk changelog with r6562's changes to 2.1
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6563 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-25 01:22:53 +00:00
Giel van Schijndel 4812f76bd7 make -C po update-po (to include newly added translations, among which the one from r6559)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6560 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-25 00:07:00 +00:00
Giel van Schijndel 6986905a65 Give --join's parameter value a name: "host"
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6559 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-25 00:06:25 +00:00
Giel van Schijndel 1809d9d0fc Add the changes of r6556 (backported to [milestone:2.1] in r6557) to the changelog
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6558 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-24 18:22:46 +00:00
Giel van Schijndel cb22e77099 * Check whether the system itself already provides strlcpy and/or strlcat
- If it does, check whether it's behaviour is consistent with our implementation
   - If behaviour is consistent: use the system's implementation
   - If not, rename our implementation (to prevent symbol clashes) and use our own


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6556 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-24 18:15:19 +00:00
Giel van Schijndel 1f4e369cf2 * Add a new struct-level qualifier: %csv-field-override
- This qualifier allows overriding of CSV field numbers given in base classes
  - This is required for the WEAPON stats because it differs from most other stats in that it doesn't have the "designable" field as the last CSV field
 * Specify all CSV field numbers for the fields in struct WEAPON
 * Generate SQL INSERT statements from weapons.txt


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6553 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-22 22:18:48 +00:00
Giel van Schijndel ca71081504 Add parentheses to resolve operator precedence problems
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6552 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 23:35:28 +00:00
Giel van Schijndel 5ea685ef33 Include the update of the Dutch translation in the ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6549 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 21:37:01 +00:00
Giel van Schijndel 129377b82d Update changelogs and bump version numbers in prepration of releasing 2.1.1
This addresses #202


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6548 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 21:34:54 +00:00
Giel van Schijndel 5b4c4ab655 Update Dutch translation:
* Add 859 newly translated messages (49% translated)

This closes #200, patch by Mathijs <vanRillandBath>

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6546 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 21:11:54 +00:00
Giel van Schijndel 3fb2610c6c Convert OpenDocument documents shortcuts.odt and todo.odt to reStructuredText (easier to edit and view)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6545 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 20:49:43 +00:00
Giel van Schijndel 2d569239a1 Convert MSWord document c1prox.doc to an OpenDocument Flat XML document
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6544 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 15:31:38 +00:00
Giel van Schijndel c5392dda1d Fix the "Perl isn't installed message" to show the minimal version required
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6543 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 14:38:25 +00:00
Giel van Schijndel ae18d97e54 Don't depend on OpenAL and Vorbis when compiling with --disable-sound
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6542 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-11 14:34:38 +00:00
Freddie Witherden fdf3e351c5 Add the button class; support for greyscaling disabled buttons pending.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6541 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-08 22:01:31 +00:00
Giel van Schijndel dae099706c Set the m4 macro directory in betawidget's configure script
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6540 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-07 20:05:45 +00:00
Freddie Witherden 97c0d84346 Update the svgManager, adding support for fetching the size at which an image will be rendered and cleaning up the interface for specifying the dimensions at which an image should be rendered.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6539 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-06 15:20:22 +00:00
Giel van Schijndel f224f9f2df Fix configure.ac for betawidget
* It seems that autoconf (2.63 or 2.62) changed the names that are acceptable as custom variable name, and no longer accepts LT_\w+ as variable names.

This addresses #201 and hopefully fixes it.

@EvilGuru, if this fixes it, please close the ticket.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6538 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-05 22:52:15 +00:00
Per Inge Mathisen 0881493713 New cheat "noassert" and new command line option "--noassert" turns off the abort functionality in ASSERT() calls.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6527 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-02 11:16:40 +00:00
Per Inge Mathisen c10ffeb2ec Improve assert in buildModule to aid in tracking down bug in ticket #167. Also add
decent fallback for non-debug builds.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6526 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-02 10:46:17 +00:00
Per Inge Mathisen 7e895fa751 Add check for demolition as build target to CHECK_DROID(). Fix some visual ugliness in that function.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6525 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-02 10:40:58 +00:00
Dennis Schridde 8eb5ddcadb fix bug #4831 (Endlessly spinning droids)
Make sure we get sucked stronger towards the 2nd waypoint than 1/2 times the strength
 we get turned towards the first. Also ensure we get never turned away from a waypoint.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6524 4a71c877-e1ca-e34f-864e-861f7616d084
2009-01-02 00:31:05 +00:00
Dennis Schridde 49b5b568b3 Another attempt against #141 (out of bounds access at scriptfuncs:11467)
Since the original assignment probably happened out of confusion what asParts[] shall or shall not contain,
I removed the offending line and added a bit more documentation about that array.

fixes ticket:141

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6523 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 14:37:41 +00:00
Dennis Schridde ab15c34724 Revert "GCC complained in scriptfuncs.c:11467 that asParts[COMP_WEAPON] is an out of bounds access, so define that to a greater value."
This reverts commit fbe7a559ee13da78660a68fb69466a46e3d46505.

!!! WARNING: The original issue (clear out of bounds access) is still present in scriptfuncs.c:11467 !!!

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6522 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 12:45:56 +00:00
Dennis Schridde 1d88daf05a GCC complained in scriptfuncs.c:11467 that asParts[COMP_WEAPON] is an out of bounds access, so define that to a greater value.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6521 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 04:04:32 +00:00
Dennis Schridde 7432a0e433 More Vector conversion functions and also one to debug printf.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6520 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 04:04:27 +00:00
Dennis Schridde 91dfdcfea2 Add worldOnMap3f()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6519 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 04:04:22 +00:00
Dennis Schridde d04ceed183 Remove airTarget member from PROJECTILE
This was used to make AA cannons which originaly aimed at a VTOL not hit anything else
As a speed optimisation we could skip searching the structure list for victims,
 if the projectile exploded above the maximum structure height, and do the same for droids

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6518 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 04:04:17 +00:00
Dennis Schridde fed9ced1a4 Simplify initialisation of projectiles a bit
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6517 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 04:04:09 +00:00
Dennis Schridde 1ad8db5ad8 Remove unused member targetRadius from PROJECTILE (was set, but never read)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6516 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 04:04:04 +00:00
Dennis Schridde 6d879e324a Reorder gfxVisible() to remove the need for a local variable, just return early instead
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6515 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-30 04:04:00 +00:00
Giel van Schijndel 5006a64d83 * Remove script function numMessageBox which is an unused alias for script function debugBox
* Minor cleanup of function scrNumMB (C implementation of debugBox script function)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6514 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-28 21:47:48 +00:00
Giel van Schijndel ccc29cb92a * Do not perform endian swapping twice when loading, as it'll undo the first swap
* Make saving and loading of move controls symmetric

This should fix #96, #127 and #177


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6512 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-28 14:31:54 +00:00
Per Inge Mathisen 2528179e0b pie2wzm: Support new WZM connector spec.
qwzm: Fix tessellation bug in PIE conversion code. Fix crash.
wzm base: Detect more errors, print nicer WZM output.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6508 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-26 19:28:22 +00:00
Giel van Schijndel 51b8909b2c Update POTFILES.in
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6507 4a71c877-e1ca-e34f-864e-861f7616d084
2008-12-26 13:47:30 +00:00