Commit Graph

2913 Commits (fe397ef7f9be7f1d0a11954ee9eb21bd22d558e9)

Author SHA1 Message Date
Per Inge Mathisen b2ec2567fd Remove gatewaysup.c - it was used in savegame version 1 to automatically generate zones,
and this code is now unused.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3512 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 15:31:22 +00:00
Dennis Schridde 1a5dde3a29 Use "Local Settings/Application Data" instead of "My Documents\My Games", since that is apperently what MS recommends...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3511 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 23:05:30 +00:00
Roman C 609ec751dc Stock AI update:
make AI leave 2 tiles without hardpoints when building a wall a defenses on gateways

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3509 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 19:25:26 +00:00
Freddie Witherden cb5f9bf2eb Commit patch #945 by Buginator. This adds a couple of extra gubbins in DEBUG mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3508 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 18:31:43 +00:00
Freddie Witherden 113a4f1d34 Commit patch #944 by Buginator which fixes some bugs in the multistruct code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3507 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 18:26:17 +00:00
Freddie Witherden 4b072b28f7 Commit patch #942 by Buginator.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3506 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 18:23:14 +00:00
Per Inge Mathisen a2d3dbd92a Fix out of index bug when checking validity of commanders with weapons,
and add assert to guard against sending destroy events for droids with 
invalid movement data.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3505 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-18 18:28:06 +00:00
Freddie Witherden 4320f1096c Rename Kills to Experience in console messages to reflect the changes in the experience system.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3504 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-18 18:25:22 +00:00
Dennis Schridde c903fc7eb9 Save WZ stuff in "My Games" on Windows. As pointed out by doom3r in http://forums.wz2100.net/?topic=1314.0
Windows doesn't seem to have CSIDL for this? Can we retrieve the name "My Games" from somewhere else?


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3503 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-18 00:36:28 +00:00
Per Inge Mathisen aa31d39054 Fix bug in r3395 which made droids on the move explode when savegame was
loaded. Also check movement parameters for droids stricter in debug mode.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3502 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-17 21:00:39 +00:00
Per Inge Mathisen ecc82d493e Add two new --enable-debug modes, profile and debugprofile, to generate CPU usage profiles.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3501 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 21:16:11 +00:00
Per Inge Mathisen d159e46a14 Send everyone a message when kicking someone from the game. Patch by Buginator
in patch #933 with style fixes by me.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3499 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 19:20:35 +00:00
Per Inge Mathisen 579e2e428e String code cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3498 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 19:07:15 +00:00
Per Inge Mathisen 08c2a06822 GUI cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3497 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 18:54:16 +00:00
Dennis Schridde 3cdcf273a4 Include cstring for gcc 4.3 compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3496 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 10:47:43 +00:00
Dennis Schridde bf93d41317 It's libGLC in the devpkg, not libglc32... Perhaps that's a mistake in OpenGLC's buildscripts...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3495 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 23:26:13 +00:00
Giel van Schijndel c1eb47283e * Fix a typo in a Doxygen comment
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3494 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 23:09:34 +00:00
Dennis Schridde 72419616fa Link against libpng12, so the libpng12.a symlink issue in the devpkg is not anymore noticed. (People having moved their libpng12.a should move it back...)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3493 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 22:39:23 +00:00
Per Inge Mathisen 5f42362b77 Replace spaces with dashes in texture names. No more spaces from now on!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3490 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 20:14:16 +00:00
Dennis Schridde fc384c7c44 Apparently Make doesn't expand CFLAGS in CXXFLAGS+=$(CFLAGS), so duplicate the line instead...
Also use GNU99 instead of C99 and CXX for .cpp files.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3489 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 19:35:04 +00:00
Dennis Schridde d1f744e97c Move c99 out of cxxflags...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3488 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 19:23:31 +00:00
Dennis Schridde 97244be45d Properly define C(XX)FLAGS instead of modifying Make rules.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3487 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 19:16:02 +00:00
Giel van Schijndel 70b196b017 * Only use -Werror-implicit-function-declaration when compiling C code (not when compiling C++)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3486 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 19:02:26 +00:00
Giel van Schijndel 238aa3e9e4 * Compile C files as C99 with the raw Makefile system
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3485 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 18:23:48 +00:00
Dennis Schridde b422209c9a Rename range() to wrap() and warn about unused results.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3484 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 18:15:13 +00:00
Dennis Schridde ff34e1fb68 Introduce new functions range() and rangef() to clip a value into a certain range.
Use that to cleanup some code.
Because of the lack of a local "math.h", it went into trig.h.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3483 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 18:02:54 +00:00
Giel van Schijndel 8ce3b1fcce * Initialise `_errCode` in Win::Error's constructor (because it's declared const...)
* Handle `show_command_last__` in the switch for `__ShellExecuteShowCmd` to prevent warnings
 * Don't specify default template parameters for function template Win::ShellExecute as function templates cannot have default template parameters

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3482 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 17:15:35 +00:00
Giel van Schijndel 31a31943bc Forgot to update EditWorld's projectfile in r3480, so doing it now
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3481 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 16:28:19 +00:00
Giel van Schijndel bfa243f575 * Move some WinAPI functions into new file winapi.[ch]pp and a namespace of its own: 'Win'
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3480 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 16:25:32 +00:00
Dennis Schridde 5f22eb8fc2 Parts of my Osmic mod modifications got accidently commited...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3479 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 14:23:11 +00:00
Dennis Schridde 20efcc7b0a Automate mod creation rules.
Notes:
- $<, the first prerequisite, expands to the prerequisite of the definition of the rule. Here: the value of %
- $?, the newer prerequisites, expand to the prerequisites of the reference to the rule. Eg.: "bar" when the reference is "foo.wz: bar"


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3478 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 14:20:20 +00:00
Dennis Schridde d8d2697d0d Per says all of swapYZ, reverseWinding, invertUV are necessary for 3DS Max created .3ds files, so enable them all by default. (In GUI and CLI.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3477 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-15 12:55:22 +00:00
Dennis Schridde d22bf8f49c Add tooltips
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3476 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 22:28:13 +00:00
Per Inge Mathisen aba1b1fa04 Fix crash when we used a dead target for fire support. Bug reported by SmokyTGA1.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3475 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 22:08:40 +00:00
Roman C 0679e72d4e Aivolution AI:
-only one copy of slo/vlo files will be left in the repository, since it is much easier to maintain
-made Aivolution research Mini-rocket Artillery faster on T1

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3474 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 21:17:29 +00:00
Dennis Schridde 31a863a90b Setup eol-style CRLF for vcproj files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3473 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 20:49:48 +00:00
Dennis Schridde 1c44cf8568 path #938 by Bugginator: MSVC projectfile updates. You need the static libraries from http://download.gna.org/warzone/development/devpkg/2.1/msvc80/ now.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3472 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 19:57:50 +00:00
Dennis Schridde d7bbab46af Set eol-style and mime-type for vcproj files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3471 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 19:55:59 +00:00
Per Inge Mathisen bf365edcff Set native eol-style on 3ds2pie files
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3470 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 19:53:33 +00:00
Dennis Schridde bb6437fe06 Drag&Drop support. (Any filename ending in ".3ds" is accepted.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3469 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 19:40:40 +00:00
Roman C e6f9cb2106 Aivolution AI Update:
-this version of Aivolution uses commanders and mini-pods
-plus many minor tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3468 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 19:20:57 +00:00
Dennis Schridde 7b38a3785f update-po
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3467 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 18:04:31 +00:00
Dennis Schridde 4ac1dfecfd - Replace texpageNr lineEdit, with texturePage spinBox.
- Remove associated error-checking (emptyness), since that is guaranteed by Qt.
- Use Ui::Gui3ds2pie instead of Ui_Gui3ds2pie. (Autodetected by Qt/UIC. make distclean if it complains.)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3466 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 02:26:05 +00:00
Dennis Schridde 716d1796b5 Enable swapYZ by default, like in the commandline variant.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3465 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:54:49 +00:00
Dennis Schridde 356ed35cbb Add Qt4 GUI. It uses 3ds2pie.c:dump_pie_file() and only has very basic error checking right now.
- To get the (currently only german) translation, run "lrelease 3ds2pie_gui.pro".
- When translating with (Qt Linguist), make sure to use the preview function to check whether your strings fit into the UI.
  If they don't, try to use a shorter translation, otherwise adapt the UI.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3464 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:19:55 +00:00
Dennis Schridde 4ea16727f9 3ds2pie says it is licensed as LGPL-2.1, so use that instead.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3463 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:14:19 +00:00
Dennis Schridde cb768653a6 Remove unnecessary (CVS?) header.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3462 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 01:13:31 +00:00
Dennis Schridde 5dc7edf2c1 Move 3ds2pie.c out of src/ again...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3461 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-14 00:28:00 +00:00
Dennis Schridde b557a843ca - Make dump_pie_file work on parameters instead of globals
- Use C89 tolower() for string conversion
- Fix unsignedness warnings
- Some variable renames
- Move parse_args and associated globals into !WZ_3DS2PIE_GUI


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3460 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 23:39:45 +00:00
Dennis Schridde 7edfeb0b0e Move C file to src/ to match default project settings.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3459 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-13 23:10:46 +00:00