An open API service for software projects hosted on Open Collective.

Warzone 2100

Server hosting for the open-source 3D real-time strategy game Warzone 2100. Also provides server hosting for the open-source turn-based strategy game Freeciv.
Collective - Host: opensource - https://opencollective.com/warzone2100 - Website: https://wz2100.net - Code: https://github.com/Warzone2100

- Move definitions of special tiles together in display3d.c (Water, riverbed, passable rubbles, unpassable rubbles)

- Provide macors for unpassable rubbles and water, since the underwater and rubble tiles can be o...

github.com/Warzone2100/warzone2100 - c91a285fe61c051f7f5501a4bb02d505a93019cc authored over 17 years ago
Only try to build QuesoGLC if we downloaded the svn:external. Should fix it for source tarballs and exotic svn updaters.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2714 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 8fd75e854c5cfa209d884a2e76e50cae360bbe7e authored over 17 years ago
Recurse into QuesoGLC directory for building. Not fully complete, since we cannot yet use the result of that.

Need to investigate further on howto best setup autotools to accomplish that.

git-svn-id: svn+s...

github.com/Warzone2100/warzone2100 - 7ca4f62452dc4df0aaee472ef9f569402b0097d0 authored over 17 years ago
* Don't allocate memory in PlayList_Init() while we don't need it yet

* Make sure to set '''global''' pointers to NULL when free()ing them
* Also set the "size" varia...

github.com/Warzone2100/warzone2100 - 6268b6fff2143320ebec04524b87dbfa6e69cf19 authored over 17 years ago
* Prevent a segfault occuring when quitting from warzone if a non-power of two number of tracks has been loaded into a playlist (due to uninitialized pointers)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2711 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - aa4bb6c5291e277fd20073ebd7d315c36f58f1a2 authored over 17 years ago
More cleanup of globals

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2710 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - eeae9829cda5b8b0398a34b14742aab1560707b6 authored over 17 years ago
* Clean up some of the playlist code:

* Make PlayList_Read return a bool instead of char (using 'char' there was a perfect example o...

github.com/Warzone2100/warzone2100 - 7a01000da9e897347987396cd2c71d691f882ab7 authored over 17 years ago
* Fix a bug where (in some cases) file names in the music.wpl playlist would be truncated

Bug reported by Jessicatz (on IRC)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2708 4a...

github.com/Warzone2100/warzone2100 - 5efc500f88d73d906649860c4e1e8d795e726dc3 authored over 17 years ago
Remove unused globals

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2707 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 4e594f0f8be06f3a77634752fe82de19acdcee75 authored over 17 years ago
Remove undocumented --noTranslucent commandline option

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2706 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 6d6d3ca8176534a63f92254decc991c6781193be authored over 17 years ago
Fix bug #9652 where water edge would transition to black instead of water when

mouse was positioned over a research or production item.

git-svn-id: svn+ssh://svn.gna.org/svn/...

github.com/Warzone2100/warzone2100 - 7f737d30f152e9fd6ded6bc25ee566c26f7b78c3 authored over 17 years ago
Now that we draw water in a separate pass, we can reduce the number of state changes a lot.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2704 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - e624663f406e5cad94c5ffa26aca14f4e2d3848b authored over 17 years ago
Do not use bucket sort for water tiles, instead draw terrain in two passes.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2703 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - f1e9c680a479f9923f6aa8af17e334215081c107 authored over 17 years ago
Clean up pieblitfunc. Dump dead code.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2702 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 01e24bf6ed1b66e8d6f78a55701a8b3d568dd466 authored over 17 years ago
* Remove the "Published by EIDOS Interactive" and "Developed by Pumpkin Studios" strings from the ingame pause screen/menu

* Update translation files to have these changes embedded

git-svn-id: svn+ssh://svn.gna.org/sv...

github.com/Warzone2100/warzone2100 - f1d91e05987439cbf4aa491bd64b8f17ca3c6f6b authored over 17 years ago
Add property to bind quesoglc

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2700 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 3a141f2c821b5346d2369058bac9fc857d1e4cf3 authored over 17 years ago
Proper linking order

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2699 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - f851174e8ec549903538568428ef6b8579976aec authored over 17 years ago
Update po

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2698 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 2d94849fbc3373e04c78fb7b18aa1b7f9e6c9222 authored over 17 years ago
Revert to the non-global static_assert, since MSVC is not ready for the global one, yet.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2697 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 94136efe2442acda948597b0f1a83b90ecfa5cd6 authored over 17 years ago
Complete the implementation of ECM (Electronic Counter Measures) in the code.

This is still a preliminary implementation, but works. If a source object tries
to see a target o...

github.com/Warzone2100/warzone2100 - e3fcef4acebab08bf93e57dcca5f51b0fb0de886 authored over 17 years ago
Remove dead code

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2694 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - c4a30cc54ba8078e36a90fd1a6c85533776c343d authored over 17 years ago
Remove unnecessary comment and addition to the commitmessage of the last commit (r2692):

& TILE_NUMMASK -> function TileNumber_tile(), & ~TILE_NUMMASK -> TileNumber_texture()

git-svn-i...

github.com/Warzone2100/warzone2100 - e25960c5a49c07c1d8614fd65fcca130fad20303 authored over 17 years ago
macro TERRAIN_TYPE -> function terrainType

int visibleXTiles -> Vector2i visibleTiles

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@...

github.com/Warzone2100/warzone2100 - 33d42e31199f90933474b72e2e9d4fea3705e194 authored over 17 years ago
remove the text.h include from a lot of files

which dont need its declarations

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2691 4a71c...

github.com/Warzone2100/warzone2100 - 3b3199b7f90608682a985be62fb81dcacd261fb8 authored over 17 years ago
Fix memory leak when more groups are created than released. See patch #826

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2690 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - bc6bd2db1e2fb1fe1216bfc0f8d8ecef0331058b authored over 17 years ago
Silence two more type punning warnings

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2689 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 99098a55b6274a3892c071d92b86f279e0bfb8b6 authored over 17 years ago
Clean up flip and rotation code. Reduce use of static globals.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2688 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - ca222db4feb7b8ef180b847abb103b9369bd23ba authored over 17 years ago
Remove dead code

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2687 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 2ac16d28c41213e36e1fe1ddb8e025acde25c47b authored over 17 years ago
* In audio_StopAll() __always__ set psSample->psObj to NULL; this should fix bug #9233 (and bug #9927, which most likely is a duplicate, as well)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2684 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - c76b59195424dfcd4833a04f509e99138bb1431f authored over 17 years ago
* Replace malloc() calls immediately followed by memset(0) calls by calloc() calls instead

* Refactor a linked list iteration to for-loop
* In audio_StopAll() check whether psSample->psO...

github.com/Warzone2100/warzone2100 - e3b3379a836fc469aa5f70093a95dfdd363dfd08 authored over 17 years ago
* Ignore 4204 warning on MSVC (non-constant aggregrate initializer; aka non-constant struct initializer)

Patch by Buginator

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2682 4a71c877-e1ca-e34f...

github.com/Warzone2100/warzone2100 - f69387aa939f711d861966f463ecb062b6bf2fe7 authored over 17 years ago
* Use spaces for line-out purposes (rather than tabs)

* Tune down the volume of the oil-pumps, power-spikes and power hums a bit, to make them less do...

github.com/Warzone2100/warzone2100 - 533e7e92bf4726ad0402c6fc7b4c0b4382b4517d authored over 17 years ago
* Don't save the volume with user volume preferences applied (instead save the track-volume so recomputing will be possible)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2680 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - a316f10a0eef77481d10bceda0b93fb233699a37 authored over 17 years ago
* Add include guards to source:trunk/lib/ivis_common/pievector.h

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2679 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 2f3e74a10708d8020a74e01ca980b7b9af82511c authored over 17 years ago
* Add a GPL (v2 or later) header to source:trunk/lib/ivis_common/pievector.h

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2678 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - e19e8814b6fbb23c855e65ad35dd586f97b069a3 authored over 17 years ago
Actually use audio.cfg configuration of sound volume. Patch by Buginator in patch #822

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2677 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - ec232d7e0f605aff59c6f036eddfdb9a818d0dfb authored over 17 years ago
* Make sure to align publisher text out to the right _correctly_

* Changeset inspired by patch #822 by Buginator

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/...

github.com/Warzone2100/warzone2100 - 9d83e2ac7a9ed2cbefadfff74f812133daee8317 authored over 17 years ago
Add testdata to list of directories to add to warzone.wz in Makefile.raw too

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2675 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 5f39fd4fe11dbd86eea98e53b11c8c40b755b0ae authored over 17 years ago
* Declare the .wz archives as PHONY targets in the raw makefile system

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2674 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 613aa478e582f4b1f4a0766d784305c1ec565fa9 authored over 17 years ago
Add extra sanity checking to tagfile code to make it fail earlier rather than later.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2673 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - ccd725073ee10fce0ccf0db2015f28683cfa6332 authored over 17 years ago
Add debug log call for tagfile errors.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2672 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 5567ae6e4b3f17a7b06a05863d57df01a23dc638 authored over 17 years ago
Fix bad assert check reported in bug #10172 causing Fast Play tutorial not to work.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2671 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 63bee4d1500c0cca7a6a73a477171c183d715199 authored over 17 years ago
Replace int x,y,z in TERRAIN_VERTEX with a Vector2i, and fix two cases of

type punned pointer casts.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2670 4a71c877-e1...

github.com/Warzone2100/warzone2100 - 6e19e51118dbbaec76fefa4c3374de147ce1599a authored over 17 years ago
Simplify Vector2f_Normalise and update docs

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2669 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 06a469ed5b207eaafc81dbfe8f80f1033e535787 authored over 17 years ago
Merge PIEVERTEX and SVMESH into TERRAIN_VERTEX and use struct assignment instead of memcpy on it.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2668 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - b99feff92f28f7f3db0f7f3eb7c54987e44bfed3 authored over 17 years ago
Add testdata to list of directories to install. Bug reported by Buginator on IRC.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2667 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 43196aaf94e3ccfb54215f32f740dc2ff32cd0d2 authored over 17 years ago
Fix use of pointer to byte in a format requiring a pointer to int.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2666 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - bf878427c6955de45800017de56a6c6a01313aa8 authored over 17 years ago
Silence type punning warning in display.c

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2665 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - f553173e7ec853c9292ca1bf702dc337ea8d4a70 authored over 17 years ago
Fix bug in last commit

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2664 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - fe27053bf7b0a5548c9eb9364a7260c015f2938f authored over 17 years ago
Fix type punning warning where we cast an array as a struct pointer in netplay.c

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2663 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - ec0836efdcf85b33d5e603b5bcbe62e228444bbc authored over 17 years ago
Fix type punning of pointers in missionGetTransporterExit

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2662 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - a788510e270ab259f97f929100bda6a1bc1fde8d authored over 17 years ago
Convert hash table to use 64 bit keys instead of 32 bit keys, since they are used

to store pointers.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2661 4a71c877-e1ca-e34f-...

github.com/Warzone2100/warzone2100 - 81ccff31f7752d6c42ed9a2b7c282d778a37b90f authored over 17 years ago
Clean up hash table code

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2660 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - c086e3c529f9a6d772003ca2ae58e12b1523313b authored over 17 years ago
Fix shadows looking bad from opposite view direction of shadows, and fix

memory leak in shadow code reported in bug #10190.

git-svn-id: svn+ssh://svn.gna.org/svn/warzon...

github.com/Warzone2100/warzone2100 - 70718282a4ec4e6a41f533b12269413301528d53 authored over 17 years ago
* Don't use variable array, structure members in RES_DATA

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2658 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - dcbef6f3981f3ea71eb20eb719d9ba11e373c37d authored over 17 years ago
* Make sure that non-debug builds are still able to compile with the changes of r2655, by adding #ifdef DEBUG sections

* Use ASSERT(!"descriptive string",.. instead of ASSERT(FALSE,..

git-svn-id: svn+ssh://svn.gna...

github.com/Warzone2100/warzone2100 - 78eb42b2264854470a3f3c050658acb9b0399069 authored over 17 years ago
* Set LANG=C in AutoRevision before executing "svn info" rather than the non-portable LANG=en_US

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2656 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 7191ed7e9211e5cd094f60d91388422a83b14d78 authored over 17 years ago
Add some ugly debug code to help track down dangling object references.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2655 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - ad9885b14b71992892d02d1b5ff1be615226d910 authored over 17 years ago
Vector normalization should not be carried out if vector length is zero, as this

would divide a vector by zero, which is bad. This closes bug #9739.

git-svn-id: svn+ssh://svn.g...

github.com/Warzone2100/warzone2100 - d668738714dc8ae464e5eb396bb606f5700f9e3d authored over 17 years ago
Sprinkle a few asserts

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2653 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - c94ba3829fa3e15c3480933a45a7cb8956efe198 authored over 17 years ago
Fix crash where rearming VTOL would try to set a dead target.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2651 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - a189581a0cb2606cd211cf1362ea62e09fa89dd4 authored over 17 years ago
* Remove the lines that would put "config.sub" and "config.guess" in place from the "clean" rule (autogen.sh already does this when necessary)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2650 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 08c2635beeb0c05eca757104b8856f1ee26ccc6c authored over 17 years ago
* Rename test.bak to test.lnd

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2649 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 35106713405e1997937cf148d11cdfec01262e51 authored over 17 years ago
* Use ngettext at several places to allow for proper translation of sentences with plurals in them

* Replace some invalid usages of %d with %u (for unsigned values of course)
* make -C po update...

github.com/Warzone2100/warzone2100 - 4ef110a2f15ed730b9a21324ad48b2cd42c128dc authored over 17 years ago
* Add a doxygen comment to source:trunk/lib/framework/strlfuncs.h describing macro STR_L_FUNC_TRUNCATION_DETECT

* Replace (the last) strncpy() call in nettyps.c with a strlcpy() call

git-svn-id: svn+ssh://s...

github.com/Warzone2100/warzone2100 - 0374c67a1244254e50df4ee8e30f6d932ac6256e authored over 17 years ago
Use GLC_TEXTURE for font rendering. Patch by Bertrand Coconnier in bug #10188.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2646 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 49df8ea371559bce76304af0af3becd9cd02bac3 authored over 17 years ago
Add comment about quesoglc workaround being fixed upstream as of today.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2645 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - e808d83f0c7309b149ce3a9707fc1565caf62f03 authored over 17 years ago
Cleanup fugly code, and add nasty hack around weird bug. See bug #9843 for more info on bug.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2644 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 1d2caebccdffd8b2532c5ae26a63ce4baefcd3a7 authored over 17 years ago
Fix crash upon entering cam2 mission1. This fixes bug #9545.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2643 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - b5e7d1149dd8b96bb5d024364d8a7cba1f7d9376 authored over 17 years ago
Use full path to frame.h. Patch in bug #10208 by unknown.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2642 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 9609cb0005038ecf441896b1113930f6f551bcbc authored over 17 years ago
Fix bug in new savegame format. Forgot one separator tag write.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2641 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 2553ccfaafcc264ece076ce2046ee9285b580516 authored over 17 years ago
* Replace a large amount of strncpy() calls with the safer strlcpy()

* Fix an error in src/game.c where we would use the wrong size as parameter to strlcpy()

git-s...

github.com/Warzone2100/warzone2100 - f5602b477800f671b9c0a88c993defaad9570e3e authored over 17 years ago
* Make resSetBaseDir const correct (char* -> const char*)

* Document the "fileName" parameter of makeLocaleFile in the Doxygen comment

git-svn-id: svn+s...

github.com/Warzone2100/warzone2100 - 613a38364e21364e34312631265eb8fc91d5e0df authored over 17 years ago
Use secure version of snprintf on Windows (_snprintf_s).

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2638 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 1811aa0cdb7bb519b5c68a9f014ec1d30cf29d8f authored over 17 years ago
* Replace a lot of strncat(dst, src, sizeof(dst) - strlen(dst) - 1) calls with the less bloated strlcat(dst, src, sizeof(dst)) form

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2637 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - bd37e62cb247c8a8987b6c7cb0cd5382a24922f2 authored over 17 years ago
* Fix a bug introduced in r2635 where we would only be able to enter one character as chat message

* This was the result from the fact that snprintf apparently deals differently than sprintf wi...

github.com/Warzone2100/warzone2100 - 86328025d2b524ad5d59626e6cdeb558feb7e842 authored over 17 years ago
* Rename pLevelName to aLevelName (hungarian notation is a pain. Especially when it's wrong!)

* Get rid of several magic numbers
* Some const correctness
* Replace a huge amount of strcpy(...

github.com/Warzone2100/warzone2100 - 6b4cba170023da2389d5fcaffc41df1eec58c85c authored over 17 years ago
Clean up LOG_3D

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2634 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 94421b5b563fbfbe965f0c688940f7e0d81f2698 authored over 17 years ago
Clean up RPL reader, removing static memory buffer once RPL file is closed. Closes bug #10206.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2633 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 9d5f31cbdd04ca808882f13fb235e839cd872714 authored over 17 years ago
Add missing braces after conditionals. Please follow proper coding style :-)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2632 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 35bd80b4265b77634cf311260e17fefc747d6997 authored over 17 years ago
Try to work around QuesoGLC bug that makes Warzone hang on chat output. Fixes bug #10202.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2631 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 8885cb207cbe66e6374514a10cd42cc7076138ef authored over 17 years ago
Fix use of uninitialized variables.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2629 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 27fe14629b12730b32bc6d7adbd2eb8877d32291 authored over 17 years ago
Fix bad printf parameter. Do not cast to short when telling printf you are using int!

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2628 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 3ebaa02deacbdc147f4130ab6e86228aaf8c8f7a authored over 17 years ago
* Add file strlfuncs.h; this file contains an inline implementation of strlcpy and strlcat (safer variants of strncpy and strncat respectively)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2627 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 673812b2a4b00376860b1e9d6d06ab52fc8c36bd authored over 17 years ago
Windows MiniDumper: resultMessage is always null-terminated and MessageBox is always shown. => Move out of ifs.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2626 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 20bc25c107255d86e76fd5e95f29fc183c14b89e authored over 17 years ago
Dump used compiler and version, too.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2625 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - a923b6a000eac17ea177fec54f34dabfdd7e220b authored over 17 years ago
* Modify function QuerySvn such that we take advantage of std::string's interface rather than using low-level (i.e. character-level) string manipulations (e.g. remove a whole chunk at the end of a string rather than a separate character every time)

* Allow the #definition of SVN_AUTOREVISION_STATIC before #include AutoRevision's output file
...

github.com/Warzone2100/warzone2100 - ac60bfc81f583c7bef72deb211a822fa826e74e3 authored over 17 years ago
- Use AC_SUBST to define pkg-config style xxx_LIBS variables

- Don't define LIBS anymore, use LDADD instead to add the required xxx_LIBS (useful for tools whi...

github.com/Warzone2100/warzone2100 - e8f6c5a90ffaf8defada45237a6fcd4b11c0eca9 authored over 17 years ago
* Enable NLS (Native Language Support) when compiling with Code::Blocks

* Link against libintl
* #define ENABLE_NLS

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/...

github.com/Warzone2100/warzone2100 - 5707e8ed997e955805524441fc9f42c591ec9951 authored over 17 years ago
* Add AutoRevision to Code::Blocks project file

* Utilize AutoRevision to create src/autorevision.h when building (pre-build step)

git-svn-id...

github.com/Warzone2100/warzone2100 - b26a6107600db15099932edb323a1f36dfb0e3dd authored over 17 years ago
Change user config directory to ~/.warzone2100-2.1 on linux and "Warzone 2100 2.1" on Mac/Windows.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2619 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 820d57269677d0913180fd2246313203180efaea authored over 17 years ago
Clean up component.c and remove two unused key mappings

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2618 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 40170a90ce83b4d5b9c2ed59111672cb9e106e1a authored over 17 years ago
* Replace a _lot_ of strcpy(), strcat() and sprintf() calls with the safer strncpy(), strncat() and snprintf() respectively

* Refactor NETlogEntry() to use the array of strings (packetname[]) instead of a large switch-st...

github.com/Warzone2100/warzone2100 - e06c186bd6e9f1d61c839ddfb3cc8a5ed9097902 authored over 17 years ago
* Remove __FILE__ prefix in debug() call as debug() apparently adds __FILE__ already (noted by Per)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2616 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 3446fb2b87da2456df5e2c316421bf86186c9122 authored over 17 years ago
* Check malloc's return value

* Don't perform assertions on the content of uninitialized memory, it's useless and annoying whe...

github.com/Warzone2100/warzone2100 - 329c6637d8a1dc05e5f3d3d32f8a00522458ecc9 authored over 17 years ago
* Fix a rather large memory leak as reported in bug #10190

* In this bug-report calling free() twice (once on psRes->aID then on psRes) was proposed
*...

github.com/Warzone2100/warzone2100 - e6827605e24bb50fd387070ec0e0fb282912a87d authored over 17 years ago
* Initialize PhysicsFS before using it

NOTE: PieToaster ''should'' compile, link and run on GNU/Linux systems right now (it does for me...

github.com/Warzone2100/warzone2100 - 870a53664649d4cd826a2446259a3078d92bf1df authored over 17 years ago
* #include <stdint.h> where we need it

* Use proper constness in main() to shut up gcc warning about wrong constness

git-svn-id: svn+...

github.com/Warzone2100/warzone2100 - 498959f9bbbddf54d64a250bea92ac43ffc4da3c authored over 17 years ago
* Replace usage of SDL types Uint* and Sint* for usage of standard C types uint*_t and int*_t respectively

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2611 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 5a91f73056861650e530557ddef482c9ed960c3d authored over 17 years ago
* Use "rm -f" to shut up the darn warning messages if several of the to-delete files don't exist while cleaning

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2610 4a71c877-e1ca-e34f-864e-861f7616d084

github.com/Warzone2100/warzone2100 - 62f1be11f1248748f61c129f81f01ef0f6f0f5b6 authored over 17 years ago