Commit Graph

8576 Commits (d3219d93cf8ff83c77c9c891d690d58d3bdd748f)

Author SHA1 Message Date
Per Inge Mathisen e467933c79 Display scenario intelligence briefings as console messages. They are
often way too fast for users to read, but it is a step in the right
direction. Patch by Angus Lees.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@420 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-20 18:49:51 +00:00
Per Inge Mathisen 67d648a2a2 The research items rotate too quickly, so slow them down to one
full rotation every 2 seconds, independent of frame rate. Patch
by Angus Lees.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@419 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-20 18:43:08 +00:00
Per Inge Mathisen 9bb74458c8 When you load a savegame where two (enemy?) units are adjacent(?) to each other, its
possible to hit a div by zero bug in visibility.c:visibleObject().

Problem occurs when rayCast() calls rayLOSCallback() and the callback exits due to 
(distSq >= tarDist) being true, without ever having executed the following block that 
updates lastD. lastD remains 0 and the divide at the end of visibleObject throws a 
SIGFPE. On any later occasion, the last distance value from the last calculation will be 
reused in this case, which is still bogus but isn't fatal.

The fix is easy, just add "lastD = dist;" before the return in the (distSq >= tarDist) 
case.

Patch by Angus Lees <gus> in bug #5761.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@418 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-12 14:58:40 +00:00
Dennis Schridde 189ca8950f Fix what I just broke... (Wrong includes, due to moved netsupp.h)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@417 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 19:32:29 +00:00
Dennis Schridde c9cd177b0d Finished the move from ivis02/v4101_stub.c to ivis02/v4101.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@416 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 19:16:21 +00:00
Dennis Schridde 40090410ac - Cleaned up stubs
- Removed unused/outdated ivis02/Ivis02.dsp/.vcproj and  src/mpdpxtra.[ch]
- Replaced src/mplayer.c with a stub, containing only mplayerSubmit()
- Added DEPRECATED warnings
- Added documentation for WZ_DEPRECATED
One commit follows, to finish the move from ivis02/v4101_stub.c to ivis02/v4101.c



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@415 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 19:14:30 +00:00
Dennis Schridde b84d79a576 - Drastically simplyfied mouse-handling.
Patch by Cybersphinx

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@414 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 16:13:48 +00:00
Dennis Schridde daf32736ad - Remove CD handling code, which is not used anymore.
Patch by Cybersphinx.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@413 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-08 15:58:27 +00:00
Dennis Schridde 628a06067b lib/ivis_opengl/screen.c:
- G++ fix( PHYSFS_file ).

other:
 - Simplify sound code.
 - Make Warzone run with busy audio device (Linux).

All patches by cybersphinx.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@412 4a71c877-e1ca-e34f-864e-861f7616d084
2006-04-01 17:50:19 +00:00
Rodolphe Suescun 045755e9a3 Minor changes in menus (new audio config menu).
Prepared mod stuff.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@411 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-27 19:53:36 +00:00
Rodolphe Suescun e82eebdf07 Merged all (useless, wicked) patches into data/mp directory.
Fixed button highlight problem in the map selection GUI (was
a very funny bug :) ).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@410 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-27 11:03:10 +00:00
Dennis Schridde 5caab5b3ff More fixes for autopackage, big thanks to Mike Hearn:
- Link libmad statically, as it is not provided in some distros.
- Automatically download physfs if not present.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@409 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-26 14:35:37 +00:00
Rodolphe Suescun 2b5a1f7639 Small fix for compilation under ubuntu...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@408 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-19 07:53:58 +00:00
Rodolphe Suescun 5d75bf6298 Fixed raw makefiles.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@407 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-19 05:00:32 +00:00
Dennis Schridde fe689a39ec - Cleaned up iVis a bit by "commonalizing" it.
- Added a WZ_DEPRECATED macro (lib/framework/macros.h) to mark deprecated functions.
  (See http://websvn.kde.org/trunk/KDE/kdelibs/kdemacros.h.in?view=markup -> KDE_DEPRECATED for usage.)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@406 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-18 01:59:59 +00:00
Dennis Schridde 01665a8ed6 - Removed autopackage/packages to increase update speed and because 1.1 seems to cause problems on systems with 1.0 installed.
Instead added a README with instructions what to do to build a package.
- Fixed a small typo in package specs.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@405 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-17 12:25:55 +00:00
Per Inge Mathisen 1fc13aa748 Fix autoconf 'make install' which was installing in one 'warzone' directory too deep.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@404 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-11 16:34:18 +00:00
Dennis Schridde 06966cc158 Quick crashfix for Windows, regarding datadir recognition.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@403 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-05 14:29:32 +00:00
Rodolphe Suescun e36796f6ce Made necessary changes so that code can be compiled using g++.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@402 4a71c877-e1ca-e34f-864e-861f7616d084
2006-03-01 06:12:28 +00:00
Rodolphe Suescun aa3c7b4ff7 Added shadows as an option.
Alt-S (can be modified) to toggle.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@401 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-28 14:04:59 +00:00
Dennis Schridde 1e7edf9fa2 Fixes some minor memleaks and marks the source of the big one in pie_PNGLoadMem.
Also big amount of whitespace changes, sorry for the inconvenience...



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@400 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-18 18:54:37 +00:00
Rodolphe Suescun 8d57e23a73 Fixed problem in addon.lev file.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@399 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-16 19:48:49 +00:00
Dennis Schridde 495f6ebaa6 Slight visual improvement: Made the water on C1 tileset for the hardware-renderer a bit more transparent, so the ground of the lakes is visible a bit.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@398 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-16 18:12:34 +00:00
Rodolphe Suescun 984de8f9c2 Integrated new tileset from grimandmandy.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@397 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-16 07:32:34 +00:00
Rodolphe Suescun f35669c212 Fixed problem in data patch 05. Maybe all patches should be
merged...
Now filenames are case insensitive (will help using maps
created with Qamly's EditWorld).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@396 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-15 09:57:55 +00:00
Rodolphe Suescun d72f0cdc02 Fixed data directory problem.
Fixed sound source destruction problem.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@395 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-11 09:00:20 +00:00
Per Inge Mathisen 398ca55ba0 Add extra sanity checks to soundtrack code. Patch by Scott Balneaves
with slight changes by me. See bug report #5168 for details.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@394 4a71c877-e1ca-e34f-864e-861f7616d084
2006-02-03 22:00:43 +00:00
Christian Vest Hansen a613adfc61 added COMPILE.html
I've listed the dependencies - someone might wanna check that I got everything

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@393 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-23 19:04:20 +00:00
Per Inge Mathisen 22a78c80bc Add helpful comments to command line parsing code.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@392 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-22 12:32:20 +00:00
Per Inge Mathisen 865ef8f633 Even more PSX code removed. Will the horror never end?
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@391 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-21 17:53:06 +00:00
Per Inge Mathisen 9aa3edda64 Fix data path problems under Windows created by previous autopackage patch. Make sure we
check for presence of gamedesc.lev before thinking a path is good. Add more data path 
checks, and gracefully drop paths that do not work.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@390 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-21 15:36:20 +00:00
Rodolphe Suescun 62b6055732 Small change in water rendering code (will require changes
in tilesets).
Fixed 2 memory leaks.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@389 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-19 10:09:20 +00:00
Per Inge Mathisen e03c5cc2f5 Comment out two debug logs that were spamming too much for comfort during normal play.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@388 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-17 08:59:47 +00:00
Per Inge Mathisen 45a97f4204 Reinstate patch loading on game start for now, so that people can play without crashing
on building limits menu. This should be fixed properly later. See bug#4968. Reported 
first by dpblnt <dpblnt>. Added FIXME comment.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@387 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-16 18:55:31 +00:00
Per Inge Mathisen 68c879d8de Make "Warning: Using colour depth of 32 instead of 24." message a debug log message
instead of a printf. Requested by Christian Vest Hansen <karmazilla@gmail.com> in 
bug#4979.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@386 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-16 18:51:12 +00:00
Per Inge Mathisen 5b6b5ecf78 Add more info to command line option -help, patch by Christian Vest Hansen
<karmazilla@gmail.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@385 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-16 18:48:03 +00:00
Per Inge Mathisen 161dbd2e2a Fix transparency issue that made buttons become empty of its icon on mouseover. Error
crept in during PCX -> PNG conversion.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@384 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-16 18:44:08 +00:00
Dennis Schridde a166a71cc9 Commandline options changed:
-datapath is now named -datadir to match the internal variables again.
        Added -help to show all possible command line options.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@383 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-15 12:43:16 +00:00
Dennis Schridde d97c39b407 Fixes bug #4961
Thanks for this patch to Scott Balneaves <sbalneav>


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@382 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-15 11:44:13 +00:00
Dennis Schridde 16fe51a87e Added AutoPackage (http://www.autopackage.org/) support.
Show version in mainmenu.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@381 4a71c877-e1ca-e34f-864e-861f7616d084
2006-01-15 11:40:43 +00:00
Rodolphe Suescun 9a6e9fa9e2 Changes in the map selection GUI.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@380 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-28 18:28:12 +00:00
Rodolphe Suescun 12ad64f101 Added support for *.addon.lev files in mods.
small fixes in the GUI (support for more maps etc.).


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@379 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-28 16:19:33 +00:00
Per Inge Mathisen 8fbafa0f4b Add more descriptive error message for missing texture pages.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@378 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-28 11:46:45 +00:00
Rodolphe Suescun 7cbcd91f70 Added support for addons directory.
Small fixes in openGL renderer.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@377 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-27 06:12:51 +00:00
Rodolphe Suescun 458fa98415 Converted remaining pcx files.
Tried to fix the patches-loaded-in-campaign-mode problem.
  this fix must be tested now...
Fixed problem with pasting host address.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@376 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-22 14:33:32 +00:00
Per Inge Mathisen 5c9ab850c1 Remove unused file
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@375 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-10 15:51:19 +00:00
Per Inge Mathisen ca69e8eac4 Support "make DESTDIR", needed apparently for Gentoo and autopackage builds. Thanks to
devurandom for notifying me of the problem.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@374 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-10 00:49:08 +00:00
Rodolphe Suescun bf980c0263 Now when typing the address for the host, you can hit TAB to paste
it from clipboard... Works under Linux, must be tested under
Windows.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@373 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-05 20:59:14 +00:00
Rodolphe Suescun e2226d927d More Windows-related fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@372 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-05 16:47:41 +00:00
Per Inge Mathisen 6e6a2fbf9a Fix autotool build
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@371 4a71c877-e1ca-e34f-864e-861f7616d084
2005-12-03 16:07:40 +00:00