Gerard Krol
9a27f4b7d0
Fix up the landing lights for bug #10204 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3548 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-23 16:23:27 +00:00
Gerard Krol
4bad68627d
Initialise the camera position, so that it is not carried over from the previous game. This closes bug #10838 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3547 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-23 15:12:55 +00:00
Dennis Schridde
3c1a1512b7
Enable power generator after building oil-derrick, instead of when the build icon was clicked. (It is already too late then, it wont be displayed in the list.)
...
Additionaly:
- Remove soundBug event, which apparently was needed to workaround some bug in the sound system which no longer exists. (We can even pause in CALL_GAMEINIT, which apparently was not possible in 1.x.)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3545 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 22:05:37 +00:00
Per Inge Mathisen
3cbf515397
Clean up horrid indentation of giftSingleDroid(). Style change only.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3544 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 21:28:16 +00:00
Per Inge Mathisen
3a6bfab317
Fix more problems with tabs in the GUI, patch #949 by Buginator.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3543 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 20:11:10 +00:00
Per Inge Mathisen
17f8c1b4c3
Fix port of gifts code to new net code. Transports can no longer be gifted away to
...
circumvent sleeping dragons in this code. Patch by Buginator in patch #939 with changes by me.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3542 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 19:49:03 +00:00
Freddie Witherden
feec1219a7
Remove some potentially dangerous dead code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3541 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 19:44:22 +00:00
Per Inge Mathisen
d04536829b
When receiving a droid gift, make sure you update visibility with it.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3540 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 19:00:41 +00:00
Dennis Schridde
2d29dc2191
Replace runtime code_part_names size checking by counting with a STATIC_ASSERT on its size.
...
Additionaly:
- Introduce ARRAY_SIZE macro
- Use code_part instead of int where applicable
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3539 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 16:03:58 +00:00
Dennis Schridde
cbccd3336c
Revert r3537, as it may not be safe on all compilers...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3538 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 15:47:20 +00:00
Dennis Schridde
d2370600d8
Replace code_part_names() with code_part2string(), which gets us rid of having to check that the array size matches the enum on runtime.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3537 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 15:41:21 +00:00
Giel van Schijndel
3d4b810716
Ignore (svn:ignore) some stuff from the build system in po/
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3536 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 11:18:36 +00:00
Giel van Schijndel
6b3f0e28ae
Remove src/gatewaysup.c from Code::Blocks project file
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3535 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-22 01:00:38 +00:00
Dennis Schridde
2ff72516fd
idx -> index
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3534 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 23:08:17 +00:00
Dennis Schridde
86be7e0389
PRINT_B macro -> bool2string function
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3533 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 23:03:04 +00:00
Dennis Schridde
664507be0d
Minor beautification of error messages.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3532 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 22:44:24 +00:00
Dennis Schridde
463aaf53d1
Make TF_ERROR into a readable function.
...
- tagGetErrorString is not provided anymore, all output goes directly to LOG_ERROR.
- The trace contains some more information.
- ASSERT()s in the unit test were removed. The output is already done by TF_ERROR where needed.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3531 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 22:33:41 +00:00
Dennis Schridde
f3296ee96b
struct define -> struct _define and define_t
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3530 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 22:19:15 +00:00
Per Inge Mathisen
fec3b1ca08
Indexed colour usage has been eliminated, so remove its support code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3529 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 17:06:31 +00:00
Per Inge Mathisen
921ab82191
Clean up GUI frame drawing and port it to PIELIGHT.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3528 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 16:57:00 +00:00
Dennis Schridde
17b7ffa3f9
Remove dbghelp.h. And update version (wine-0.9.53) is now included in the mingw32 devpkg.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3527 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-21 00:23:14 +00:00
Ari Johnson
715286a3b4
Xcode project update for deleted source file
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3526 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 23:49:28 +00:00
Ari Johnson
d075817fce
Fixed a typo in the #warning for GLC_TRIANGLE
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3525 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 23:48:00 +00:00
Per Inge Mathisen
b9bcbad34c
Port scores code to use PIELIGHT.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3524 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 23:01:13 +00:00
Per Inge Mathisen
fab4fb38df
Remove gatewaysup.c from POTFILES, too.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3523 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 22:36:37 +00:00
Per Inge Mathisen
d4d7ca2110
Port radar clan and flash colours to PIELIGHT. Patch by Buginator in patch #948 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3522 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 22:14:51 +00:00
Giel van Schijndel
69016895ca
* Remove gatewaysup.c from MSVC project file (patch by Buginator)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3521 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 19:00:51 +00:00
Dennis Schridde
9bcb213adb
Delete unused german translation
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3520 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 19:00:10 +00:00
Dennis Schridde
e5b03c4ade
Make xgettext not wrap long lines
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3519 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 18:59:00 +00:00
Dennis Schridde
ff3fe807e4
Fix some fuzzy translations
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3518 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 18:53:50 +00:00
Dennis Schridde
6a1f6b2ac4
Set poedit settings
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3517 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 18:33:19 +00:00
Dennis Schridde
456a8b8ec7
Same for non-german
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3516 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 18:28:27 +00:00
Dennis Schridde
9f34c40d13
Run de.po through poedit (should not contain any translation changes)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3515 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 18:26:26 +00:00
Dennis Schridde
f6b223ca78
update-po
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3514 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 18:24:16 +00:00
Per Inge Mathisen
df19674baf
Save gateways and zones in tagfile format.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3513 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 16:52:51 +00:00
Per Inge Mathisen
b2ec2567fd
Remove gatewaysup.c - it was used in savegame version 1 to automatically generate zones,
...
and this code is now unused.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3512 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-20 15:31:22 +00:00
Dennis Schridde
1a5dde3a29
Use "Local Settings/Application Data" instead of "My Documents\My Games", since that is apperently what MS recommends...
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3511 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 23:05:30 +00:00
Roman C
609ec751dc
Stock AI update:
...
make AI leave 2 tiles without hardpoints when building a wall a defenses on gateways
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3509 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 19:25:26 +00:00
Freddie Witherden
cb5f9bf2eb
Commit patch #945 by Buginator. This adds a couple of extra gubbins in DEBUG mode.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3508 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 18:31:43 +00:00
Freddie Witherden
113a4f1d34
Commit patch #944 by Buginator which fixes some bugs in the multistruct code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3507 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 18:26:17 +00:00
Freddie Witherden
4b072b28f7
Commit patch #942 by Buginator.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3506 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-19 18:23:14 +00:00
Per Inge Mathisen
a2d3dbd92a
Fix out of index bug when checking validity of commanders with weapons,
...
and add assert to guard against sending destroy events for droids with
invalid movement data.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3505 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-18 18:28:06 +00:00
Freddie Witherden
4320f1096c
Rename Kills to Experience in console messages to reflect the changes in the experience system.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3504 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-18 18:25:22 +00:00
Dennis Schridde
c903fc7eb9
Save WZ stuff in "My Games" on Windows. As pointed out by doom3r in http://forums.wz2100.net/?topic=1314.0
...
Windows doesn't seem to have CSIDL for this? Can we retrieve the name "My Games" from somewhere else?
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3503 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-18 00:36:28 +00:00
Per Inge Mathisen
aa31d39054
Fix bug in r3395 which made droids on the move explode when savegame was
...
loaded. Also check movement parameters for droids stricter in debug mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3502 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-17 21:00:39 +00:00
Per Inge Mathisen
ecc82d493e
Add two new --enable-debug modes, profile and debugprofile, to generate CPU usage profiles.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3501 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 21:16:11 +00:00
Per Inge Mathisen
d159e46a14
Send everyone a message when kicking someone from the game. Patch by Buginator
...
in patch #933 with style fixes by me.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3499 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 19:20:35 +00:00
Per Inge Mathisen
579e2e428e
String code cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3498 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 19:07:15 +00:00
Per Inge Mathisen
08c2a06822
GUI cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3497 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 18:54:16 +00:00
Dennis Schridde
3cdcf273a4
Include cstring for gcc 4.3 compatibility.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3496 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-16 10:47:43 +00:00