Commit Graph

5851 Commits (d2f3f8bd4214eda213ad957c088b5d418cf63767)

Author SHA1 Message Date
Elio Gubser adfc6f2aa8 added some asserts and improved commentaries
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6950 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-06 13:09:08 +02:00
Elio Gubser acf512b28a fixed incorrect if-condition
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6949 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-06 13:09:08 +02:00
Freddie Witherden 2a9d01789a Ensure to flush/mark dirty the Cairo image surface when we draw/read from it outside of Cairo.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6948 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-06 13:09:08 +02:00
Freddie Witherden ded5c837d0 Add Pixman to the Xcode project. Currently unused/untested.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6947 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-06 13:09:08 +02:00
Gerard Krol 90edf63fd2 Don't show smoke for a building that is under construction. 2009-04-03 22:39:38 +02:00
Gerard Krol 6b817fbcf5 Display both the health and build progress of a building that is under construction. 2009-04-03 22:37:36 +02:00
Gerard Krol 510b18497e Structures start at 10% health and gain more during construction. 2009-04-03 22:21:22 +02:00
Gerard Krol 55b2652b6c Replace spaces by tabs in structureDemolish. 2009-04-03 21:55:59 +02:00
Gerard Krol ca4bf40d2f Move the demolish code to it's own function in structure.c.
Also fix a bug that caused demolish to proceed exponentially. Demolishing now takes a fifth of the time needed to construct the building.
2009-04-03 21:40:59 +02:00
Gerard Krol ddf159ca4e Move the code for constructing a structure by a droid to a separate function in structure.c 2009-04-03 21:00:50 +02:00
Elio Gubser df6647b9f5 adds the patternManager for betawidget. take a look at sdl-testapp.lua for usage example
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6946 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-03 18:53:12 +02:00
Freddie Witherden 6b641069df Support resizing of widgets with OpenGL content.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6945 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-03 18:53:12 +02:00
Freddie Witherden cab53fcbfb Add OpenGL support to betawidget.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6944 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-03 18:53:12 +02:00
Guangcong Luo 8dcdfe5665 Add myself to AUTHORS
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6942 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-03 18:53:12 +02:00
Guangcong Luo 4f1b01b4af Commit Rebalance 0.4.1
Changelog:
- Howitzers, incendiary artillery, and T3 weapons strengthened
- All weapons have same damage upgrade progression (25%) and one of two rate upgrade progressions (10% or 15%). This is down from an average of 30% and 20%, respectively. This is intended to make weapon choice matter more.
- Cyborgs further balanced. Not only should they be usable, they should be fairly well balanced within themselves now (Next: VTOLs!)
- Ranges rounded off to multiples half-tiles, except the Wide Spectrum Sensor Turret, which is still 17.7 tiles.
- Cyborgs no longer have to be researched.
- Cyborg factory only requires Engineering now.
- Trading up weapons offers more of a benefit.
- Weapon multipliers massively rearranged.
- Cannons/Rails split from Rockets/Missiles, no longer both anti-tank.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6940 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-03 18:53:11 +02:00
Giel van Schijndel 2bca3018f4 Make sure that WZ_ASSERT_STATIC_STRING works properly in C++ as well
In fact, WZ_ASSERT_STATIC_STRING should now work on ''all'' valid C++ compilers.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6930 4a71c877-e1ca-e34f-864e-861f7616d084
2009-04-03 18:53:11 +02:00
Git SVN Gateway bc074e1ed2 Merge commit 'per/master'
* commit 'per/master':
  Fix ticket #293: Crashes in netlog code.
2009-03-30 16:13:17 +02:00
Giel van Schijndel 54abb2ad7c * Don't use "touch" on Windows, as Windows doesn't have that command
- Instead use "echo file > file"

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6927 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:59 +02:00
Guangcong Luo 0644e25415 Commit patch #323 (Fix divide-by-zero crash when null pointer passed to getDroidDestination).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6923 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:59 +02:00
Freddie Witherden 18870edfd6 Revert r6921. The newline character on OS X is \n, only OS 9 used \r, which we do not target.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6922 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:59 +02:00
Giel van Schijndel 12eccf9d4c An end of line character is "\r" on the Mac
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6921 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:59 +02:00
Giel van Schijndel f179b6f092 Allow compiling and linking with lib/framework/stdio_ext.h and src/version.h from C++ code
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6920 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:59 +02:00
Per Inge Mathisen 7781fe6ab4 Fix problem that prevented information about enemy research to be shared between hosts.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6914 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:58 +02:00
Per Inge Mathisen eb8fc6ce26 Add new --enable-debug option "g++" which compiles Warzone code using g++ compiler.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6913 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:58 +02:00
Per Inge Mathisen 82a97e938e Various fixes to be able to compile (but not yet link) Warzone with g++
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6912 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:58 +02:00
Per Inge Mathisen 1b4559cb98 Remove dead code in intResearchFinished()
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6911 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:58 +02:00
Giel van Schijndel 1f89497235 Prevent leaking memory in mapFree by deallocating all memory we allocated
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6910 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:58 +02:00
Giel van Schijndel 0698f8424d Slightly better documenting of code and error messages
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6909 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Giel van Schijndel 40dcefc574 Remove the C++ implementation of the lobby server since it isn't used nor is it being maintained
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6907 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Per Inge Mathisen 60fe79b68f Fix ticket 342 - out of range path node crashes game
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6905 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Per Inge Mathisen 2ad693b643 Ticket 340 - implement basic support for partial visibility and radar power that diminishes by range.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6904 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Per Inge Mathisen 18ae6c42da Don't crash if some tech takes zero research points to finish. Problem found by Buginator. Also fix NTW sky texture names.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6903 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Giel van Schijndel e7d6676599 Document the meaning and purpose of BODY_UPGRADE's member variables
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6897 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:57 +02:00
Giel van Schijndel 9b8f292073 * Access arrays with array-indexing syntax
- i.e. array[index] instead of *(array + index)
 * Access a variable's size using sizeof(variable)
  - Instead of sizeof(typeof(variable)) * ARRAY_SIZE

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6896 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:56 +02:00
Giel van Schijndel 0c178e51d9 Add a document describing design decisions and the current status of the SQLization of the stats
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6895 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:56 +02:00
Per Inge Mathisen 2d6b971336 Remove dead code. Move variables into closer scope.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6894 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:56 +02:00
Per Inge Mathisen 34769c53f3 Wrap changes to cached sensor and ecm stats for objects into two new functions to clean up the code. Reviewed by stiv.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6893 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:56 +02:00
Per Inge Mathisen 264fc0d450 Remove dead code. One less unnecessary global.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6892 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:56 +02:00
Per Inge Mathisen 9d6734c767 Wrap access to psGateways behind an accessor. One global down, so many to go...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6891 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:55 +02:00
Buginator 93bae75382 Fix a few Asserts to give more info, and correct spelling.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6887 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-30 16:10:55 +02:00
Per Inge Mathisen 7dfe082475 Fix ticket #293: Crashes in netlog code. 2009-03-21 08:19:49 +01:00
Gerard Krol 107f634977 Set svn:eol-style native and convert the line endings to \n.
This is to make sure Git on Windows does not complain when autocrlf and safecrlf are set.



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6886 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-21 01:53:25 +01:00
Buginator ba5fc9d56f Updates .gitignore with lots of files to ignore from windows builds 2009-03-20 20:16:34 -04:00
Buginator 6dc7ff51bb Allow F10 to *always* be the screenshot key.
This also allows you to take screenshots of anything now. (main menus / game menus, FMVs*, and of course, in game)
*While it can do screencaps of a FMV, right now, it is setup to abort the sequence when you hit a key.  So that means only 1 frame from the FMV.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6884 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-20 21:22:47 +01:00
Git SVN Gateway 2ad4d5518f Merge branch 'master' of git@gitorious.org:warzone2100/gerard_ 2009-03-20 20:41:17 +01:00
Buginator e1e42928ee Players no longer drop from game after too much data has been sent to them. (Usually happens in longer games, when there is more data that needs to be sent)
Closes ticket:315
Fixes ticket:218

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6881 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-20 20:40:49 +01:00
Per Inge Mathisen 95ff68f350 Improve error message on failed PIE texture flag load
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6879 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-20 20:40:48 +01:00
Gerard Krol 68a623a6f0 No longer assert when the thing we want to display a blueprint of is not a building, it might be a droid or a feature from the debug menu. 2009-03-20 20:30:15 +01:00
Gerard Krol 3000958bca Swap the order of the arguments when calling same_commit to check if we need to push, because only old..new seems to work correctly. 2009-03-19 00:57:29 +01:00
Per Inge Mathisen 3ea41a0b2d Restrict private messages to 0..7 instead of 0..8, which can be more than the
maximum 8 number of players. Bug found by Buginator.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6876 4a71c877-e1ca-e34f-864e-861f7616d084
2009-03-18 23:57:48 +01:00