Giel van Schijndel
65961cbb45
* Use a variable to store the tagfile unittest definition files' names in (rather than copy-pasting those in the tagOpenRead & tagOpenWrite calls)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3347 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 20:01:54 +00:00
Giel van Schijndel
0ae7c6a88a
* Slightly adjust code-formatting to increase readability
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3346 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 19:55:01 +00:00
Giel van Schijndel
34d26a6719
* Don't do "if (ptr != NULL) { ... } if (ptr == NULL) { ... }" instead use an if-else construction: "if (ptr != NULL) { ... } else { ... }"
...
* Use slcatprintf instead of snprintf into a local buffer (on the stack) followed by concatenating to our target string
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3345 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 19:11:16 +00:00
Giel van Schijndel
17faff7281
* Remove unused member functions AssertValid and Dump from some MFC classes (less porting for me!)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3344 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 18:39:22 +00:00
Giel van Schijndel
87a55581f0
* Move the tag definition files over to data/tagdefinitions and move the savegame definitions into data/tagdefinitions/savegame
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3343 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 16:10:51 +00:00
Giel van Schijndel
9e790e79ab
* Reduce the amount of copy-pasting of filenames..
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3342 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 15:55:55 +00:00
Giel van Schijndel
4d8da13cb4
* Use the tagfile format for score.bjo (and rename it to score.tag)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3341 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 15:24:22 +00:00
Giel van Schijndel
e722d7ec39
Add some more comments
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3340 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 15:12:01 +00:00
Giel van Schijndel
f3499cc232
Replace asserts on invalid tags with CHECK_TAG_INVALID
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3339 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 14:59:19 +00:00
Freddie Witherden
fcfcf0f2cf
Commit part 4 of patch #913 which ports recvResearch to the new netcode API.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3338 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 13:50:33 +00:00
Freddie Witherden
3a997a083d
Commit the third part of patch #913 which removes send/recvDestroyExtra.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3337 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 13:43:44 +00:00
Freddie Witherden
f4e1004604
Fix a bug which prevented r3335 from compiling.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3336 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 13:40:17 +00:00
Freddie Witherden
9a312a7991
Commit the second part of patch #913 which removes (the defunct) AUDIOMSG system.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3335 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 13:38:19 +00:00
Giel van Schijndel
1d83be8064
* s/tagWriteSeparator/tagWriteNext/g for consistency's sake (to match the tagReadNext function, which is the reading equivalent)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3334 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 13:37:42 +00:00
Freddie Witherden
c95c1bbd43
Commit the first part of patch #913 porting send/recvTemplateDestroy to the new netcode API.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3333 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 13:37:10 +00:00
Freddie Witherden
a6c4f7b786
Port multioptions + structure limits dialog over to the new netcode API.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3332 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 12:59:42 +00:00
Freddie Witherden
daad83d316
Make NETend(); return TRUE when we are finished decoding.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3331 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 10:32:59 +00:00
Ari Johnson
d84aaa6701
Updates to Xcode project
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3330 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-04 00:02:10 +00:00
Freddie Witherden
a98a563e71
Fix a bug in the recvPing function that was causing people to have high pings. This bug was also responsible for units 'jumping' in MP games.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3329 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 22:52:53 +00:00
Roman C
b0b7c25198
Apply more balancing on mainstream weapons.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3328 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 21:38:12 +00:00
Giel van Schijndel
71bc4ff8be
* Remove useless cdspan code (was only a wrapping function for audio_PlayStream)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3327 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 19:38:06 +00:00
Roman C
34e7fdf4c3
-Tracks propulsion is not pre-researched in T1 anymore
...
-HMG HP is enabled in T1 "Advanced bases" settings (the way it was intended to be)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3326 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 18:44:56 +00:00
Giel van Schijndel
149b351d3c
* Port functions readFXData and writeFXData over to the tagfile API (and change the files they read&write to a ".tag" extension
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3325 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 00:37:59 +00:00
Giel van Schijndel
48f32faccf
* Add function resGetNamefromData which complements resGetNamefromData and allows you to retrieve the resource ID (usually filename) for a resource (IMD, IMG, TEXPAGE, WAV, etc.)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3324 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 00:35:57 +00:00
Giel van Schijndel
96e737fb03
- Bring command.bjo to tagged format (and rename it to firesupport.tag).
...
- Use new NULL_ID instead of UDWORD_MAX to indicate invalid ids.
- Fix if-complication
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3323 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 00:30:51 +00:00
Giel van Schijndel
b60b1b121c
* Use const-correct functions for the tagWrite.* stuff
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3322 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 00:30:17 +00:00
Giel van Schijndel
785eb69c8b
* Add a forward declaration for tagReads32v into tagfile.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3321 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-03 00:29:10 +00:00
Per Inge Mathisen
5ca6073e97
Fix a crash bug in recvDroidCheck and move variable declarations into innermost scope.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3320 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 22:04:54 +00:00
Roman C
ee9dd1108a
Fixed bug #10443 .
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3319 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 21:32:14 +00:00
Per Inge Mathisen
2c7b375170
Remove whiteboard feature in multiplayer join dialog.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3318 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 21:20:43 +00:00
Freddie Witherden
c5f5a74e5c
Remove some dead code in structure.c.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3317 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 21:19:07 +00:00
Giel van Schijndel
69ad91c56b
* Enable debugmode (allows cheating) by default on DEBUG builds
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3316 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 21:06:00 +00:00
Roman C
1f10acfaf5
Balancing tweaks:
...
-Python body is a pre-requisite for Tracks now
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3315 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 19:16:18 +00:00
Per Inge Mathisen
2ca1351c13
Add another field to the IMG csv files that describe what it does.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3314 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 19:15:45 +00:00
Per Inge Mathisen
2954a59823
Fix lack of proper highlighting of the locked teams button in multiplayer join dialog.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3313 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 17:59:58 +00:00
Roman C
c2ef4afcdc
Balancing tweaks:
...
-gave more firepower to flamers and cannons
-made cannons more versatile
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3312 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 17:21:49 +00:00
Per Inge Mathisen
dc7a84da62
Log droid death and packet source. Beware: This will make net games incompatible
...
between before and after this commit.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3311 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 17:08:29 +00:00
Giel van Schijndel
6e98009cd4
* Set mime-type to image/png
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3310 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-02 09:30:47 +00:00
Giel van Schijndel
7cb804c32e
* Depend on libglc-dev while building a Debian package (Yay\! It's finally in the Debian repositories\!)
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3309 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 23:15:21 +00:00
Dennis Schridde
60216b7420
- Seperate 2D and 3D graphics artists
...
- Add Hatsjoe for 2D graphics
- s/Coder/Programming/
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3308 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 22:56:46 +00:00
Per Inge Mathisen
d281f9e845
Make svn use native text encoding for IMG files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3307 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 22:28:41 +00:00
Per Inge Mathisen
639843ee25
Change mime type of IMG files to text/csv
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3306 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 22:27:54 +00:00
Per Inge Mathisen
bb660a0a02
Fix "clever" use of malloc that made MSVC (correctly) complain about assumed size of void.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3305 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 22:13:27 +00:00
Per Inge Mathisen
2b65dc3057
Add cathuria to AUTHORS and add a list of other than GPL licensed
...
material to COPYING.README.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3304 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 21:46:50 +00:00
Per Inge Mathisen
168a66b89c
Add another backdrop by cathuria.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3303 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 21:40:04 +00:00
Per Inge Mathisen
52cca82fb2
Change the binary IMG files into CSV text files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3302 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 21:33:47 +00:00
Freddie Witherden
39fe5d3544
Fix an error in the recvStructureCheck function that would result in a segfault.
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3301 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 21:30:44 +00:00
Dennis Schridde
3f6b52bef1
src/game.c: Minor beautification.
...
configure.ac: YY_NO_INPUT prevents Flex from defining input(), which we do not need, since we use our own YY_INPUT instead. Maybe we should use Flex's function instead?
lib/script/script_parser.y: scriptStoreVarTypes() was defined but never used.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3300 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 15:18:25 +00:00
Dennis Schridde
1afd50b629
- Turn several id = (int)ptr assignments into FIXME_CAST_ASSIGN, so places of malicious ptr-to-int casts can be easier identified. (Doesn't fix the actual problem/warning. Often uses a _tmpid.)
...
- Turn a 0xcdcdcdcd into a MSVCRTD_INVALID_MEMORY macro. This should be fixed, since it will not work without MSVC!!!
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3299 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 14:51:19 +00:00
Dennis Schridde
beaf85a112
update-po
...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3298 4a71c877-e1ca-e34f-864e-861f7616d084
2008-01-01 14:13:59 +00:00