Commit Graph

6872 Commits (27534ac95a839c265942c32886ceb6e1c5533eeb)

Author SHA1 Message Date
dak180 27534ac95a Put prebuilt components on sf.net.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9647 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:05 +01:00
Buginator fb25ad3966 Prevent the game from puking when it finds a map with a custom tertile that isn't supported by trunk (yet). We only support the 3 main tertiles for now, (tertilesc1hw-tertilesc3hw)
This hack will allow all maps to be loadable again, though, it might look strange.

fixes ticket:1455

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9646 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:04 +01:00
i-nod 43e3379f9f Some tweaks for MSVC 2008 project:
- STL debug was disarmed (very high performance impact), can be re-enabled when truly needed
- removed erroneously duplicated header
- removed 'src' sub-group folder, they are in 'source files' anyway

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9639 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:04 +01:00
Guangcong Luo 30167a6a39 Increase research limits. Closes ticket:1493.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9637 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:04 +01:00
dak180 1e677d1917 Add a configuration to run the Clang static analysis tool.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9636 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:04 +01:00
Christian Ohm 48a60262bc Make it possible to override the QGLViewer paths for qwzm.
This makes it possible to compile qwzm on systems that use different paths
without modifying version controlled files.

Create a file called "config" in qwzm's directory that sets the
QGLVIEWER_INCL/LIBS variables. E.g. for Ubuntu 9.10 the following works:

QGLVIEWER_INCL = /usr/include/qglviewer-qt4
QGLVIEWER_LIBS = -lqglviewer-qt4

Current Debian unstable only needs the LIBS line.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9635 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:04 +01:00
Christian Ohm d6113fa149 Clear buffers on start and exit.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9633 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:03 +01:00
Per Inge Mathisen 6f95d916dc Exorcise target.c and target.h from all build systems.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9631 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:03 +01:00
Cyp d6aa3aa986 Remove target system, since all the function calls did absolutely nothing.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9630 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:03 +01:00
Per Inge Mathisen 4b008a7f67 Fix texture disapparance act in hudless mode. Patch by Safety0ff. Closes ticket:1421
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9629 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:03 +01:00
Per Inge Mathisen d21f071e8c Fix truck texture glitches in trunk by turning on face culling. Patch by Safety0ff. Closes ticket:1503
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9628 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:03 +01:00
Per Inge Mathisen 7fbb31a561 Hack to fix old savegames. Closes ticket:1541
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9626 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:02 +01:00
Cyp a5bb6acfc8 Translate/rotate component after finding health bar location instead of before, to avoid health bars being displayed on wrong oil derrick or cyborg component.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9625 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:02 +01:00
Per Inge Mathisen 066b57586f Remove duplicate template loader from savegame code that did not work. Closes ticket:1540 Patch reviewed by cybersphinx.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9624 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:02 +01:00
Per Inge Mathisen 90cdd78602 When rendering structures, always pass player colour to model rendering code.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9622 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:02 +01:00
Per Inge Mathisen 5799b53f99 Add rendering support for the TRANS_FILTER transparency mode.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9621 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:01 +01:00
Per Inge Mathisen 6f5a49387f Clean up the definitions of the rendering modes.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9620 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:01 +01:00
Per Inge Mathisen 6120368424 Remove duplicate tile height and make it now use the float version. Patch reviewed by gerard_
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9619 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:01 +01:00
Per Inge Mathisen 53c3107fd1 Clean up MAPTILE definition, and slash 56 bits off each tile to save memory.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9618 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:01 +01:00
Per Inge Mathisen 7432b844b7 Random dead code removal and style cleanup in savegame code.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9617 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:01 +01:00
Christian Ohm 143d7fb331 Updated Estonian translation by Erlando.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9612 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:00 +01:00
Per Inge Mathisen 46e245c11d Set alliancebits visibility sharing info on loading skirmish saves. This fixes shared vision when loading games for teams.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9610 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:00 +01:00
Per Inge Mathisen b28f8d36e0 Remove client socket from socket set when a client unexpectedly disconnects, and let other
clients know about this event. Patch reviewed by Cyp_.  Closes ticket:1515


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9607 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:59 +01:00
Per Inge Mathisen 0cc7c315db Fix template loading for the 8 human player case by storing static AI templates in a special
linked list for that purpose alone. These templates are not saved to savegames, and the ID
matching works only because load order is identical - the same way it is handled by campaign.
This means that MP templates.txt, like the campaign one, must never be reordered.
Patch reviewed by Zarel. Closes ticket:1486


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9606 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:59 +01:00
Thomas Barlow aa2e8fd0f5 Fix some AI unit templates which had multiple turrets, but shouldn't have.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9604 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:59 +01:00
Buginator 2ca94bec9c Fix data integrity kick that was broken in r9425
Also add more debug statements for LOG_NET


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9602 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:59 +01:00
Christian Ohm 50d2c5973d Updated Ukrainian translation by olexandr1986.
I've added the missing plural marker, should work with poedit now.
Closes #1522.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9600 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:58 +01:00
Cyp 4e72da7a2a lib/netplay/netplay.c: Change two more don't-while loops into do-while loops.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9598 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:58 +01:00
Cyp db16e17dda src/component.c: Fix cleanup again, same as last fix, in another place.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9595 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:58 +01:00
Buginator 7266552505 Fix for 64bit compilers.
Reported by atis_home  (thanks!)

closes ticket:1523

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9594 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:58 +01:00
Buginator ceacb7d6ae "Simplify sendScoreCheck() and Remove recvScoreSubmission() since it wasn't needed, and instead use setMultiStats().
This fixes the scoreboard so all sides have the correct score.
*NOTE* If you cheat then your score will _NOT_ advance!
*NOTE* scoreboard is the *last* priority for the sync code, if things don't look correct on all screens, now you know why.

Host updates the AI scores to all machines.

Fixes ticket:1500
Fixes ticket:1384
"

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9592 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:58 +01:00
Buginator 0ce19c3b19 reverse merge r9578
"Sorry, since working on other issues in multisync.c, was forced to revert r9579 because it was too unstable to play MP games with it.
refs ticket:1516 "



git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9591 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Buginator 46ea38f8d5 Merge r9584/9585
"Add sync counters to more accurately keep track of what is being synced and what isn't.

This information is saved in netplay.log in the config dir."


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9590 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Buginator 3a5f7d556b Use #define NOMINMAX to disable the min / max macros in windows.h
instead of r9562
The other option was to use (std::max) as in, you have ( ) around min/max



git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9589 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Buginator dc8cb98ad9 Update MSVC project file for release build and fix iniparser DebugInformationFormat.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9588 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Cyp c491a4b315 lib/netplay/netplay.c: Change don't-while loop into do-while loop.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9582 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Christian Ohm 5b3b144994 Remove a useless macro parameter.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9580 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:57 +01:00
Per Inge Mathisen 6f052e0ed9 Fix offscreen updates, they were only setting droid pos.x and pos.y for most orders, and those are
promptly overwritten next frame by sMove.fx and sMove.fy which are not updated. So I rewrote the code
a bit to only use the floating point values. I also made it issue move command for onscreen changes 
when in guard order. Not sure why we do not do this for all orders, but at least guard should also be safe.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9578 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:56 +01:00
dak180 3a800c09a3 Add wavecast.cpp and wavecast.h.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9565 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:56 +01:00
Per Inge Mathisen 16aa6298b2 Two new cheats to investigate sync issues in MP: "sync me" to force sending sync checks for
selected units, and "power info" to print out the power for each player.


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9564 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:55 +01:00
Cyp 5156184644 ai.c: Increase target weight, so droids aren't too lazy to target anything.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9563 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:55 +01:00
Cyp 8f034fe834 Workaround for Microsoft bugs such as #defining random words such as min and max.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9562 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:55 +01:00
Guangcong Luo f5ded29098 Add back the isMPDirtyBit hack, and prevent kicking on data problems in debug mode.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9561 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Per Inge Mathisen 8f51743062 Keep bitfields of vision knowledge for faster comparisons. This speeds up map vision updates by almost 15%. (Reviewed by Cyp_.)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9559 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Christian Ohm 3ad0b8dbc0 Updated Spanish translation by Saberuneko.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9557 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Cyp 2f896b3f1b bucket3d.c: Cleanup dead code, remove arbitrary limits, replace approximate sort with exact sort. (Reviewed by Per.)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9556 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Per Inge Mathisen bc633df81a Make human players have super cyborgs and cyborg engineers again.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9553 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:54 +01:00
Per Inge Mathisen c6fdcd9933 Do not crash by freeing stack allocated variable when finding a duplicate template.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9550 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00
Christian Ohm 1e418f3f28 Updated Russian translation by Maxim.
Closes #1497.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9549 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00
Christian Ohm 1c26f7ddd5 Fix a few graphical off-by-one errors.
Put the bottom left menu one pixel to the right, so the distance to both bottom
and left edge is 24 pixels. Move the menu buttons two pixels up, so it's in the
middle. Put the radar into the middle of its border. Make the bright rectangle
fill the complete selection.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9548 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:27:53 +01:00