Commits on Nov 19, 2010
  1. make -Cpo update-po

    Cyp committed Nov 19, 2010
  2. Fix multiturret droids trying to look at invalid weapon slots of stru…

    …ctures when looking at their targets.
    Fixes a desynch when multiturreted droids are present.
    Cyp committed Nov 19, 2010
  3. Fix broken check for giving too many trucks to a player. Caused desyn…

    …chs due to players not agreeing who owned what.
    The check against selectedPlayer was incorrect, it caused clients with max trucks + 1 to not believe anyone could give trucks to anyone else.
    Introduced in d6b47d1.
    Changelog: Really fix truck limit when giving trucks.
    Cyp committed Nov 19, 2010
  4. Fix VTOLs teleporting to a planet 2.5 million tiles up, due to missin…

    …g cast before division in last commit.
    Cyp committed Nov 19, 2010
Commits on Nov 18, 2010
  1. Fix desynch due to deltaGameTime not being deterministic during messa…

    …ge processing.
    Fixed by setting deltaGameTime = 0 in src/loop.c, after each game-state update.
    Also, cleaned up lib/gamelib/gtime slightly.
    To reproduce locally, start 2 clients, set one to 20x speed, the other to normal speed, and create droids on uneven terrain using the debug menu.
    Cyp committed Nov 18, 2010
Commits on Nov 17, 2010
  1. Spanish translation update by Saberuneko.

    Closes #2327.
    cybersphinx committed Nov 17, 2010
Commits on Nov 16, 2010
  1. Fix broken mapObjIsAboveGround and incorrect lighting normals due to …

    Changelog: Fix projectiles going through terrain due to bad terrain height calculations.
    Changelog: Fix terrain shading.
    Cyp committed Nov 16, 2010
  2. Remove floats related to map height.

    The MAPTILE.height and MAPTILE.waterLevel fields are now integers and are pre-multiplied by ELEVATION_SCALE (which was 2), and therefore now store the actual heights.
    Preserved old behaviour including a couple of ELEVATION_SCALE-related bugs, which will be fixed in the next commit.
    Might reduce desynchs, due to reduced floats.
    For several recent commits:
    Changelog: Removed lots of floats, which hopefully reduces the risk of desynchs.
    Cyp committed Nov 16, 2010
  3. Remove floats from src/droid.c.

    Cyp committed Nov 16, 2010
  4. Fix broken moveCalcBlockingSlide comparisons, and make DEG(42) evalua…

    …te to 7645 without use of floating point.
    After making DEG avoid using float (unless given a float argument), had to fix moveCalcBlockingSlide to avoid out-of-range-comparison error-warnings.
    The moveCalcBlockingSlide's int16_t instead of uint16_t was introduced in 6c811c1.
    Also, remove lots of unused stuff.
    Cyp committed Nov 16, 2010
  5. Change droid experience from float to uint32_t.

    Less floats generally reduces the risk of desynchs, don't know if the droid experience caused desynchs, but it might have been possible. Added experience to syncDebugDroid.
    Also, fixed QualityFactor and droidResistance integer truncation and made single-player skirmish damage not affected by difficulty level either.
    Cyp committed Nov 16, 2010
  6. Convert iIMDShape.min/max from Vector3f to Vector3i, since they are u…

    …sed in the game state.
    Don't know if that could cause any desynchs, but better not to risk it.
    Cyp committed Nov 16, 2010
Commits on Nov 15, 2010
  1. Turkish translation update by Ayhan Görgülü.

    Closes #2316.
    cybersphinx committed Nov 15, 2010
  2. Add missing include.

    cybersphinx committed Nov 15, 2010
  3. Use 'Warzone 2100 master' as the default directory, and the default c…

    …rash handler (on windows) directory.
    fixes ticket:2317
    buginator committed Nov 15, 2010
  4. Don't assume the macro WEAPON_MOUNT_IMD is the same as it is in 3.0.

    The 2nd parameter is used in master, but not 3.0.
    This was broken in f825a85
    Thanks to Berg for the report.
    buginator committed Nov 15, 2010
Commits on Nov 14, 2010
  1. Fix extra '/'s in previous commit.

    Cyp committed Nov 14, 2010
  2. Add releaseBranch script.

    Cyp committed Nov 14, 2010
Commits on Nov 13, 2010
  1. make -Cpo update-po

    buginator committed Nov 13, 2010
  2. Fix invalid pointer usage in droidSetBits, due to using getPropulsion…

    …Stats(psDroid) too soon.
    Found by valgrind. Introduced in bb72422. Could probably cause desynchs or crashes.
    Cyp committed Nov 13, 2010
  3. Never call mapShutdown() or environReset() in mid-missions, since we …

    …come back
    to the main map, and that data must be valid or we get no textures, and the water
    heights will be incorrect.
    Also complain loudly if the mission type is wrong (should never happen!)
    fixes ticket:2262
    (cherry picked from commit b859c3d)
    buginator committed Nov 12, 2010
  4. Fix underflow, if a pre-built structure has part of it in water.

    NOTE: since this is going on, on our mission maps, we just fix the issue, instead of
    removing the item, since the item in question might be used by the scripts, and removing
    it would break things.
    fixes ticket:2302
    (cherry picked from commit 94bedce)
    buginator committed Nov 12, 2010
  5. When doing a map preview, no need to process stuff that is only usefu…

    …l in-game.
    This speeds up the preview screen back to 2.x speeds.
    (cherry picked from commit 5f42d00)
    buginator committed Nov 13, 2010
  6. Fix another memory clobbering issue. (dereferenced pointer)

    Patch Author: Safety0ff
    fixes ticket:2300
    Original detective work done by Ai_Tak (ticket:1656)
    Signed-off-by: buginator <>
    (cherry picked from commit 1a6fb8a)
    buginator committed Nov 9, 2010
  7. Forgot the include for f4e8221

    (cherry picked from commit d4639fe)
    buginator committed Nov 8, 2010
  8. CHANGELOG: Fix unit explosion color for turret

    fixes ticket:2294
    (cherry picked from commit f4e8221)
    buginator committed Nov 13, 2010
  9. Actually copy the default template name

    (cherry picked from commit 5132e5c)
    buginator committed Nov 6, 2010