Commit Graph

6988 Commits (36a6036b9f8ad5e73467bb29b027258e98add83d)

Author SHA1 Message Date
Cyp 3e7d9e97fe logical: Fix some more dependencies of the game rules on the graphics framerate. (frameGetFrameNumber())
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9669 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:09 +01:00
Cyp abe95f17ff logical: Bump updates per second to 10, since 3 was just for testing.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9668 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:09 +01:00
Cyp 6d9233545d logical: Remove some weird use of frameGetFrameNumber(), fixing structures becoming visible only after a random long time.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9667 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:09 +01:00
Cyp 7493321d2b logical: Fix flashing sensor target lock. Move some things to logical updates.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9666 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:08 +01:00
Cyp 709e9c677d logical: Fix droid legs disappearing during first update interval.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9665 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:08 +01:00
Cyp 6941f6e5f2 logical: Use graphics time for changing camera height, avoids jumping up and down.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9664 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:08 +01:00
Cyp f6cff80f6b logical: Completely use graphics time for effects.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9663 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:08 +01:00
Cyp 8956a53f8b logical: Set initial previous turret orientation.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9662 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:08 +01:00
Cyp 98866d29a4 logical: Use graphics time instead of game time for effects.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9661 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:07 +01:00
Cyp 316dc273b7 logical: Glue cyborg legs to cyborgs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9660 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:07 +01:00
Cyp 162157ef5a logical: Rename some things. Fix when not updating fast enough.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9659 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:07 +01:00
Cyp 985d3be6f4 logical: Render interpolated droids and turrets.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9658 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:06 +01:00
Cyp 973cedbd9e logical: Cleanup, don't crash when not logical.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9657 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:06 +01:00
Cyp 92225b6b18 logical: Make some projectiles animated in-flight.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9656 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:05 +01:00
Cyp a99ef4ba19 logical: Logical updates.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9655 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:05 +01:00
Christian Ohm ae932c1c15 Updated Croatian translation by KukY.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9652 4a71c877-e1ca-e34f-864e-861f7616d084
2010-02-09 20:28:05 +01:00
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