Dennis Schridde
728c68b81e
Use format strings where required (script parser)
...
Should fix #178
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6597 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-09 02:53:52 +00:00
Per Inge Mathisen
c599637530
Fix potential bug that might cause a unit to go outside the map due to division rounding error,
...
since code was manually dividing by TILE_UNITS instead of bit-shifting with map_coord(). Patch
reviewed by EvilGuru. Crash report by acidjnk.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6595 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-07 19:13:14 +00:00
Per Inge Mathisen
4b8ee8ad09
Improve gridStartIterate assert message
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6594 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-07 19:07:13 +00:00
Per Inge Mathisen
2d24d351e5
qwzm: Make use of QGLViewer. This lets us rotate and translate the model, as well as add various
...
helpful hints to the scene. Note that you need to install QGLViewer to use qwzm now.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6592 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-07 18:21:06 +00:00
Per Inge Mathisen
90121f4920
pie2wzm: Fix spurious warning about missing connector directive in PIE model.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6590 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-07 12:35:11 +00:00
Per Inge Mathisen
d4beacb790
pie2wzm: Make sure we output a line ending after the connector directive for multi-mesh models.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6589 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-07 12:28:37 +00:00
Per Inge Mathisen
ea999b01a7
qwzm: Port over level parsing fix from pie2wzm. Fix connector parsing error.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6588 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 23:25:30 +00:00
Per Inge Mathisen
9b26e6c1bd
qwzm: Add missing file from way back.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6587 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 23:13:02 +00:00
Per Inge Mathisen
86d734598f
pie2wam: Add verbose mode. Fix parsing error in some multilevel files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6586 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 23:12:05 +00:00
Per Inge Mathisen
0bd4f60a78
Set svn eol-style native to scripts files and svg files that are missing it while I'm at it.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6585 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 23:09:36 +00:00
Per Inge Mathisen
bb9bc6e335
Set svn:eol-style native on some TXT files that are missing the property.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6584 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 23:04:18 +00:00
Per Inge Mathisen
1154d45ed1
Set svn:eol-style property on some WRF files that are missing it.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6583 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 23:03:10 +00:00
Per Inge Mathisen
fac247afba
Fix bad texture page names in some PIE files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6582 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 23:00:47 +00:00
Per Inge Mathisen
28e24651e5
Fix missing svn:eol-style property on some PIE files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6581 4a71c877-e1ca-e34f-864e-861f7616d084
2009-02-04 22:30:42 +00:00
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