Buginator
f5b845a611
Do a bounds check not to exceed NUM_FACTORY_TYPES.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11684 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 4b45c471c60d2ae1d9c25e4f96f2c7574f73e1f1)
2010-10-18 22:24:00 -04:00
Buginator
d6b47d1122
Don't allow a player to acquire more construction vehicles than the max amount allowed.
...
Fixes ticket:2175
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11674 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit e6cd09968b23f0d7941cc6f15569fbe8c8ef8457)
2010-10-18 22:23:59 -04:00
Buginator
58c0ceec95
Fix edit boxes so they correctly calculate the string's pixel borders.
...
Motivation of this patch was because of some whiny guy on IRC. ;)
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11668 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 81f07188a3693007621496ac9fa0c0e2e8b24b87)
2010-10-18 22:23:59 -04:00
buginator
0c4de91732
Fix a10c7f740eb1e3ce11c11c8ca7c231e55412441f to actually close the filehandle on error.
2010-10-18 22:23:58 -04:00
Buginator
baab97f7a9
Add checks to maps that are too small.
...
fixes ticket:2135
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11585 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 43570ae1ff39606503ef8c29b8e31cdf1a48af8f)
2010-10-18 22:23:57 -04:00
Buginator
c71700b9fb
Add more bounds checks for our favorite player, player 9!
...
closes ticket:2129
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11575 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 6e212eb16143457131a52947c37f310d1496e66d)
2010-10-18 22:23:57 -04:00
Buginator
2e2dd97e56
Change log line to make it obvious it is only enabled in debug builds.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11574 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit c5090cdc900f3352e00e1c218eb550dff66773b3)
2010-10-18 22:23:56 -04:00
Buginator
6fe94c17e3
Trap player to be under MAX_PLAYERS.
...
(looks like player 9 (features) are getting in some routines, and causing crashes.)
closes ticket:1972
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11573 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 0c2b6ae1e4120f25ccfcb7443f3f60ad16b61c31)
2010-10-18 22:23:56 -04:00
Buginator
0be5f2b6e9
Add code to look for "novideo.ogg" refs ticket:2052
...
but don't upload the novideo.ogg yet, since we don't have a clear winner.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11566 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 7f6ea5d1a332b7bc535a4a83768b0b90d543df1c)
2010-10-18 22:23:55 -04:00
Buginator
d38bc9d849
Turn off dragging when a in-game popup / menu is shown.
...
Fixes ticket:2086
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11565 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 686927f2a4626c56e218c92b83cf15e747f180f8)
2010-10-18 22:23:54 -04:00
buginator
683a9e65d5
Fix a segfault issue with NULL names.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11564 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 476aab454a3a0749ddf695cd7b498695dcbd5650)
Conflicts:
src/loadsave.c
2010-10-18 22:23:54 -04:00
Buginator
0edb51ed33
Add "actual" ping times for the Host to the lobby screen.
...
NOTE: These are averaged values, and it takes time for the values to ...average. These numbers were 'hidden' before by the 'traffic light' indicator. This is only a rough estimate of your *actual* ping time. See dev note bravo echo 3.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11559 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 378e5405013e766aeb004c7f95bd610c7189c96e)
2010-10-18 22:23:53 -04:00
Buginator
2bb1a51bc1
Instead of showing score of 0 when people have cheated (shame on you!) display '(cheated)' to make it more clear.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11558 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 7da9390c7e51b282f75daed7760c2ed358bdbb1b)
2010-10-18 22:23:53 -04:00
Buginator
f4c3d7ec8e
Change ASCII_NEWLINE from '@' to '`'
...
This enables people to use "@" in chat.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11545 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 10217901eb10fc652c3c8eeb2eba2f519b1f5b0f)
2010-10-18 21:47:48 -04:00
Buginator
6539a3b19e
Change back kf_ToggleSensorDisplay to KEYMAP_ASSIGNABLE (however, we still won't allow it in MP games)
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11531 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit e85d0deb556eb00dc17db5bc6d3886fb02bde2fc)
2010-10-18 21:47:17 -04:00
Buginator
a4cb1d0c46
Move back ToggleSensorDisplay to a debug function, and don't allow it in MP games.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11501 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 9ee9ed52dd204ee217741ccfcdf49d2386124e57)
2010-10-18 21:44:52 -04:00
Buginator
dd87aaf864
Try to continue loading if we detected a bad ID.
...
fixes ticket:2100
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11500 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit bef4eb0f8d5312961ac6b110ece6552fe1098e51)
2010-10-18 21:44:17 -04:00
Buginator
bc24cd6a22
Try to make the password box more idiot proof.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11492 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 41b6578b911a263cf566ec9db42476215b2ccfe7)
2010-10-18 21:43:14 -04:00
Buginator
ccd5555275
Remove a (MSVC only) debug() line that spammed way too much.
...
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11321 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit a2a11fccd74485f76dbb098c0bb73de6cc0bd708)
2010-10-18 21:37:48 -04:00
Christian Ohm
b14ac4422e
Add missing header to fix compilation.
2010-10-19 00:07:37 +02:00
Per Inge Mathisen
34770f0d63
Add fallback script starting position if map has no HQ by checking for first found truck. This fixes tutorial and danger map bug.
2010-10-18 23:02:01 +02:00
Per Inge Mathisen
ca7155957d
Do not create danger maps for campaign. Add this later, but there seems to be too many corner cases to handle for now.
2010-10-18 23:01:29 +02:00
Per Inge Mathisen
6c406f4a68
Always set script starting positions to zero on game init, before loading level data.
...
Set game.maxPlayers to 8 for campaign (more truthful).
2010-10-18 23:00:09 +02:00
Per Inge Mathisen
ee8024b6ea
Change old obsolete way of checking for single player campaign by checking
...
for game.maxPlayer == 0. Instead, now check game.type == CAMPAIGN.
2010-10-18 22:58:19 +02:00
Per Inge Mathisen
00406e5154
Remove completely obsolete idea of saving game.type to user settings.
2010-10-18 22:52:55 +02:00
Per Inge Mathisen
1f857b4a52
Remove unused TILE_HILIGHT bits.
2010-10-18 21:57:39 +02:00
Per Inge Mathisen
ceaaaef858
Split danger map and threat map updates to use less CPU time each logical frame. Also optimize
...
threat updates by ignoring friendly players earlier. Patch reviewed by SafetyOff.
2010-10-18 19:29:51 +02:00
Cyp
b79e6da0ab
Let moving droids look ahead a short distance instead of narrowly following a path, and backtrack if starting to go the wrong way.
...
If all else fails, pathfind again.
2010-10-18 03:52:06 +02:00
Cyp
4ccd57baed
Add missing "tileset \" to BASELIST, it should now be possible to start games again.
2010-10-18 03:52:05 +02:00
Christian Ohm
95bbc77a1f
Update translations.
2010-10-18 03:36:01 +02:00
buginator
ff4690745f
Externalize the former anonymous enum members for each tileset.
...
This now allows switching between texture sets much easier than what
was previously possible.
NOTE: Files are currently set up for trunk's textures.
refs ticket:2013
(cherry picked from commit 696f6c251fe9359041e0905207843f79f0ee1d2a)
2010-10-17 19:32:58 -04:00
safety0ff
43d449aec7
Apply TCMask to VTOL factories.(cherry picked from commit b04220cb317340e2c96e32b058e85b8cd0db200c)
2010-10-17 19:32:57 -04:00
buginator
b16dbab041
Apply textures from ticket #1757
...
TCmask textures ticket:1757
TC mask textures done by Berg
(cherry picked from commit 2bab0b57a91ad4d83c5e8c2731e1a3c9ae2c8a92)
2010-10-17 19:32:56 -04:00
buginator
82b95c20ea
Apply TCmask to command relay center
...
(cherry picked from commit 8e3bb05fe807fb10e851c370498e7751c6e5d54c)
2010-10-17 19:32:55 -04:00
buginator
9b05b30402
Apply TCmask to factory
...
(cherry picked from commit af45b8dbe9d03b0a70d90e3dba39301614b806a6)
2010-10-17 19:32:55 -04:00
buginator
162573a74d
Apply TCmask to HQ
...
(cherry picked from commit 5217d81a458b94d52990d1efbacc39a7c2aa572b)
2010-10-17 19:32:54 -04:00
buginator
4d4e39e6d4
Apply TCmask to research center
...
(cherry picked from commit b91f08c5977c910fca985eb2d04106827395df7a)
2010-10-17 19:32:53 -04:00
buginator
e09e8ac4fe
If resource was not loaded, then don't continue on, error out.
...
(cherry picked from commit aa8bf289b8f4fad5d6122a43432521dbf2e2cc92)
2010-10-17 19:32:53 -04:00
buginator
91e3dd44b7
Fix a typo. Thanks to Berg for the heads up.
...
(cherry picked from commit d90e246441df486d2c2a077b39151c3333baf8d4)
2010-10-17 19:32:52 -04:00
buginator
e70c36723a
Fix wrf files to make it more clear what is going on.
...
Frontend.wrf is *NOT* the main texture loader for MP games, we are
using limiter_tex.wrf for that, which is hardcoded in the sourcecode.
(This is same behavior as trunk)
(cherry picked from commit fb4a9e2797252b438a1b2fbfe14f71aa2a641b9b)
2010-10-17 18:46:10 -04:00
buginator
6b296db0dd
Externalise all map tileset settings.
...
(cherry picked from commit 0d01c4d81e6605ad50687f5d33f0a53332f78003)
Conflicts:
src/map.c
2010-10-17 18:46:09 -04:00
buginator
5dc7903b9b
Externalise all map tileset settings.
...
(data files)
(cherry picked from commit 5b56edc6fd0fcf8be5b313d77757c61f937cf44e)
2010-10-17 18:46:09 -04:00
buginator
905d039a56
Apply TCmask pies from ticket:1757
...
Textures & wrf changes will be in next commit
(cherry picked from commit 82a93bb9cf8cf58ef2097aa43f75a620d1e8e309)
2010-10-17 18:46:08 -04:00
buginator
89e9127957
The Super Transport (which is the same gfx as the transport in SP game) is available
...
in MP games now.
The Super Transport can carry a max of 10 units, their weights are calculated by
Cyborg / light unit : 1 "slot" used
Medium unit : 2 "slots" used.
Heavy : 3 "slots" used.
The Super Transport becomes available after you reseach the cyborg transport,
and you research the Super Transport.
The stats of the Super Transport are NOT final.
Conflicts:
data/mp/stats/assignweapons.txt
data/mp/stats/templates.txt
src/order.c
2010-10-17 18:46:07 -04:00
buginator
4cc9640860
Add support for X player maps. You need flaME 1.10 or higher to make the new maps.
...
This adds support for 3,5,6 & 7 player maps.
2010-10-17 18:46:07 -04:00
buginator
a11d60774e
Fix MSVC builds
2010-10-17 18:46:06 -04:00
Christian Ohm
f894586e5c
Update translations.
2010-10-18 00:04:09 +02:00
Per Inge Mathisen
8a01df2f1a
Clean up handling of SHOOT_IN_AIR and SHOOT_ON_GROUND with some fringe behaviour changes. These are bit values, not enums! Patch reviewed by SafetyOff.
2010-10-17 23:32:34 +02:00
Per Inge Mathisen
1477265908
Add support for multiple weapons and differentiate between air and ground hitting weapon types. Early support for AA threat maps. Patch reviewed by SafetyOff. Ref ticket:2203
2010-10-17 23:32:34 +02:00
dak180
5b45925a1c
Remove formation.c from the xcode project.
2010-10-17 15:14:08 -04:00