Commit Graph

8015 Commits (d6b47d1122f751dea01680d3598041e374a21590)

Author SHA1 Message Date
Per Inge Mathisen 0c0bcd5c35 Add a danger map to the AIs. This will keep them from wandering into the line of fire of enemies while going
from one place to another, and can also be used for quick lookups to see if a particular tile is threatened
by potential enemy fire. Patch review by SafetyOff and with help from Cyp.
2010-10-17 17:04:11 +02:00
Per Inge Mathisen 860d70715d Merge branch 'master' of gitorious.org:warzone2100/mainline 2010-10-17 16:08:32 +02:00
Per Inge Mathisen 6f25802553 Fix the ugly "Bug! (e)" message for script added production. Makes watching autogames really annoying. 2010-10-17 16:06:47 +02:00
buginator c2368d5107 Update .gitignore for MSVC 2010-10-16 19:38:35 -04:00
Christian Ohm 1ef4fe7b59 Update POTFILES.in. 2010-10-17 00:09:14 +02:00
Per Inge Mathisen 4bbd0e9b5f Make movement code better by deleting more lines of code. Remove boundary vectors
and the hack that makes droids phase in walk nodes opportunistically. Now follow path as given.
2010-10-16 20:53:06 +02:00
Per Inge Mathisen 955788bfa9 Remove old, broken formation system. This removes 1084 lines of code. 2010-10-16 20:49:52 +02:00
Cyp 49e9780f41 Fix spurious out-of-synch messages when pausing in single-player mode.
This was caused by forgetting to set the delta tick time to 0 when paused. Don't know whether fixing this fixes anything else.
2010-10-16 17:55:01 +02:00
dak180 a31521f75e Clean out extraneous linkage. 2010-10-13 20:52:12 -04:00
dak180 e5c398b141 Some 64bit prep.
--HG--
extra : rebase_source : b84622c5ee3ddfda891d561327bd4c99a8642362
2010-10-13 17:10:48 -04:00
dak180 20924b59a4 Clean up things that are no longer used.
--HG--
extra : rebase_source : 544022e1eeeac8e22d03d0a59cd98ddb9c220a51
2010-10-13 17:09:51 -04:00
Giel van Schijndel 5457aefde6 Turn global geoOffset into a constant
geoOffset is only ever intialised to 192 so make it a constant instead
of a variable.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 22:47:04 +02:00
Giel van Schijndel b5fb5bacf8 remove write-only variables buffer and size from iSurface
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 22:09:31 +02:00
Giel van Schijndel 0d2dbdbaef Replace rendSurface related bitshifts with divisions
These cases of bitshifting are premature optimisations ''only'',
especially since they obscure what's really going on (finding the center
of a range).

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 21:35:22 +02:00
Giel van Schijndel 6e509622c2 move global rendSurface to piemode.c
rendSurface isn't used by rendmode.c, so define it in piemode.c where it
is both used and its contents are defined.

Additionally remove unnecessary #includes from rendmode.h and include
the correct headers at places where rendmode.h was included.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 21:35:04 +02:00
Giel van Schijndel 5ab267ab71 Remove pointer global psRendSurface
Global pointer psRendSurface only ever contains &rendSurface (another
global), provided that it isn't undefined (isn't statically NULL
initialised).  So replace the use of this pointer with using
rendSurface.

Additionally remove function iV_RenderAssign, which only wraps the
psRendSurface assignment along with a debug() call, and inline it at its
only call-site.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 21:30:00 +02:00
Giel van Schijndel 681988a5d4 Remove unused constant PIE_NO_CULL
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 21:30:00 +02:00
Giel van Schijndel 5a51986e65 Get rid of double pie_/iV_ names for the same functions
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 21:30:00 +02:00
Giel van Schijndel e278f01bcd remove write-only variable iSurface.flags
Remove the write only member variable `flags` from struct iSurface.

Additionally remove the macros REND_SURFACE_(UNDEFINED|SCREEN|USR) which
were only used to assign to the `flags` variable.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 21:29:59 +02:00
Cyp 569fb99693 Also fix MSVC *.vcproj files that somehow ended up in lib/ instead of win32/, remove the last part that touches macosx. 2010-10-13 17:49:59 +02:00
Giel van Schijndel 10f2bdede6 scriptfuncs: store (possibly) signed values in signed variables
Store map coordinates in a pair of signed integers as that's how
map_coord returns them.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-13 00:10:03 +02:00
Giel van Schijndel 5923c45593 piematrix: improve mathematical description of pie_RotateTranslate3f
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-10 14:53:58 +02:00
Giel van Schijndel 0a7b147c5b code cleanup: slight code reordering for readability
Slight reordering of the call to pie_RotateProject and turn a
todo-message comment in an actual TODO.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-09 18:58:17 +02:00
Giel van Schijndel d6c7690f02 trig: don't #include "math_ext.h" as trig.h doens't use it
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-09 17:33:45 +02:00
Giel van Schijndel a8fdd2c068 trig: declare all trigonometric functions as pure
Mark the prototypes of all (fixed point) trigonometric functions as
pure.  This declares that these functions don't have any side-effects.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-09 17:30:53 +02:00
Giel van Schijndel 83aacc042b Get rid of unused constant TRIG_DEGREES
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-09 16:54:09 +02:00
dak180 d2739968a3 Only xcode should touch the project.pbxproj file. 2010-10-08 20:45:40 -04:00
dak180 a11af2d203 merge 2010-10-08 19:36:10 -04:00
dak180 6473b8eded Treat the xcode project as a binary. 2010-10-08 18:51:16 -04:00
Cyp 03cc107b84 Add build script fixer for when renaming files from .c → .cpp, and add branch-switching hack to lib/ivis_opengl. 2010-10-08 13:16:07 +02:00
Cyp 125e7ba9ab Convert pie_MatRot[XYZ] to use uint16_t instead of float. 2010-10-08 11:28:31 +02:00
Cyp 5fa9edc4ad Replace iv_Matrix with pie_Mat, eliminating the need for ivispatch.h. 2010-10-08 11:19:57 +02:00
dak180 60c61a89b4 Make sure that git is in the path when Autorevision is run. 2010-10-07 15:19:46 -04:00
Giel van Schijndel fd740148c3 piematrix: remove unused function pie_RotateTranslate3iv
Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-07 16:10:34 +02:00
Cyp ef4b894202 Make autorevision.cpp print Git commit SHA1s. 2010-10-07 14:40:12 +02:00
Buginator 3defb7a8da Thanks to the follow individuals for the new icons! Forum members "Jorzi" (kick icon) "CinC" (VTOL/NO VTOL icon) and "n2large0shirt" (Cyborg / no Cyborg icon)
Thanks to Mysteryem for cleaning up the icons and doing some modifications as well so they all match the theme.

Cherry-picked from 934b5a4803efbc15159d07dc197424f63f3ec29e = 2.3@11710, resolved conflict by taking 2.3's data/base/images/frontend4.png and recrushing.
2010-10-07 13:06:03 +02:00
dak180 269af78e68 Update the copy data script to work without svn. 2010-10-06 18:54:42 -04:00
Giel van Schijndel 704b32b9ba piematrix: fix rotation math
In 697a97ff18, my interpretation of the
performed matrix math was wrong as a result of (wrongly) reading [xyz]^2
as [xyz]*2.  This commit fixes that error.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-06 17:03:32 +02:00
dak180 15db57f405 Update the ignores. 2010-10-05 23:42:50 -04:00
Giel van Schijndel ab9711d877 piematrix: get rid of FP12 bitshifting
Use multiplication and division instead of bitshifting as its
conceptually easier to understand (mathematically).

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-05 23:52:54 +02:00
Giel van Schijndel 660f202a9c Fix wrong ordering of matrix cells
Wrong ordering reported by cybershpinx

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-05 23:32:42 +02:00
Giel van Schijndel 697a97ff18 piematrix: document the used math
Add descriptions of the used matrix math and the internal representation
of matrices.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-05 22:41:51 +02:00
Giel van Schijndel c95f0f8be3 Replace [xy]pshift with the single constant it ever contains
The variables [xy]pshift only ever contain the constant value `10`, so
instead of bothering to keep the variables around use the
STRETCHED_Z_SHIFT constant.  This constant serves the same purpose as
[xy]pshift (only for the Z coordinate) and is defined to `10` as well.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-05 20:14:55 +02:00
Per Inge Mathisen 41338ab0d6 Test commit 2010-10-04 21:15:46 +02:00
Giel van Schijndel 9d973acc20 Debianize the two ticket-related Trac plugins
Turn the ticketnotifications and ticketvalidemail Trac plugins into
Debian packages, allowing for slightly easier management of these
plugins.

Signed-off-by: Giel van Schijndel <giel@wz2100.net>
2010-10-04 19:39:13 +02:00
Cyp b080fb644e Don't assert on AI giving queued orders after debug-switching players. 2010-10-03 14:01:42 +02:00
dak180 f146148be9 Make sure the licence is in the bundle.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11743 4a71c877-e1ca-e34f-864e-861f7616d084
2010-10-03 00:46:51 +02:00
dak180 c3e55dde07 Update libpng to 1.4.4 and use better cleaning for updated libs.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11737 4a71c877-e1ca-e34f-864e-861f7616d084
2010-10-01 19:24:23 +02:00
dak180 83e21c6cf2 Bump the upload limit up for the buildbot.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11735 4a71c877-e1ca-e34f-864e-861f7616d084
2010-09-29 22:52:58 +02:00
Christian Ohm ce3ce77882 Italian translation update by Alpha93.
Closes #2199.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11730 4a71c877-e1ca-e34f-864e-861f7616d084
2010-09-29 22:52:58 +02:00