Commit: 48c4958062a8fdfaac64d49ad5c339b017f7f5c9 Trac URL: http://developer.wz2100.net/changeset/48c4958062a8fdfaac64d49ad5c339b017f7f5c9
Author: Cyp <[email protected]> Date: Tue Nov 16 11:59:45 2010 +0100 Convert iIMDShape.min/max from Vector3f to Vector3i, since they are used in the game state. Don't know if that could cause any desynchs, but better not to risk it. lib/ivis_common/ivisdef.h | 2 +- lib/ivis_opengl/piedraw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ------------------------- Commit: a0c1c9de0dde1dc4562bdea4ce5ab0ad1fe3c354 Trac URL: http://developer.wz2100.net/changeset/a0c1c9de0dde1dc4562bdea4ce5ab0ad1fe3c354 Author: Cyp <[email protected]> Date: Tue Nov 16 14:01:18 2010 +0100 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. lib/netplay/nettypes.h | 2 +- src/cmddroid.c | 16 ++---------- src/cmddroid.h | 2 +- src/combat.c | 10 ++++---- src/combat.h | 2 +- src/display.c | 14 +++++----- src/droid.c | 63 +++++++++++++++++++++-------------------------- src/droid.h | 2 +- src/droiddef.h | 2 +- src/feature.c | 12 ++++---- src/feature.h | 2 +- src/game.c | 8 +++--- src/multisync.c | 2 +- src/projectile.c | 41 ++++++++++++++++--------------- src/scriptfuncs.c | 6 ++-- src/structure.c | 7 ++--- src/structure.h | 3 +- 17 files changed, 88 insertions(+), 106 deletions(-) ------------------------- Commit: 2af8f9c7128701598c2f49c3bf7c8da82a7b2c26 Trac URL: http://developer.wz2100.net/changeset/2af8f9c7128701598c2f49c3bf7c8da82a7b2c26 Author: Cyp <[email protected]> Date: Tue Nov 16 14:48:06 2010 +0100 Remove some float usage from src/structure.c. src/display3d.c | 6 +++--- src/structure.c | 54 +++++++++++++++++++++++------------------------------- src/structure.h | 4 ++-- 3 files changed, 28 insertions(+), 36 deletions(-) ------------------------- Commit: 3359fac3955ecf895fca0d40bad65ec180e48731 Trac URL: http://developer.wz2100.net/changeset/3359fac3955ecf895fca0d40bad65ec180e48731 Author: Cyp <[email protected]> Date: Tue Nov 16 18:33:20 2010 +0100 Fix broken moveCalcBlockingSlide comparisons, and make DEG(42) evaluate 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 6c811c1ecb831aea6e2bd5580040aaccc7ec8003. Also, remove lots of unused stuff. lib/framework/fixedpoint.h | 7 ++- lib/framework/macros.h | 99 -------------------------------------------- lib/framework/math_ext.h | 34 --------------- lib/netplay/netplay.c | 12 ----- lib/netplay/netplay.h | 1 - lib/netplay/nettypes.cpp | 38 ----------------- lib/netplay/nettypes.h | 3 - src/component.c | 6 +-- src/move.c | 2 +- 9 files changed, 7 insertions(+), 195 deletions(-) ------------------------- Commit: 902ec0427271b963db3174dd739ddf0703ebf9d3 Trac URL: http://developer.wz2100.net/changeset/902ec0427271b963db3174dd739ddf0703ebf9d3 Author: Cyp <[email protected]> Date: Tue Nov 16 19:00:55 2010 +0100 Remove floats from src/droid.c. src/droid.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) ------------------------- Commit: 275428c161ad403a1d1e4b36dc95b1ef692d7240 Trac URL: http://developer.wz2100.net/changeset/275428c161ad403a1d1e4b36dc95b1ef692d7240 Author: Cyp <[email protected]> Date: Tue Nov 16 20:02:22 2010 +0100 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. src/display3d.c | 6 ++-- src/edit3d.c | 4 +- src/feature.c | 2 +- src/keybind.c | 2 +- src/lighting.c | 48 +++++++++++++++++++++--------------------- src/map.c | 60 ++++++++++++++++++++++++++-------------------------- src/map.h | 33 ++++++++++++++--------------- src/multiint.c | 2 +- src/radar.c | 8 +++--- src/scriptfuncs.c | 2 +- src/structure.c | 2 +- src/visibility.c | 2 +- 12 files changed, 85 insertions(+), 86 deletions(-) ------------------------- Commit: 6ea8e50b65f301e49c4d5800f0569957329d3eec Trac URL: http://developer.wz2100.net/changeset/6ea8e50b65f301e49c4d5800f0569957329d3eec Author: Cyp <[email protected]> Date: Tue Nov 16 20:20:54 2010 +0100 Fix broken mapObjIsAboveGround and incorrect lighting normals due to ELEVATION_SCALE. Changelog: Fix projectiles going through terrain due to bad terrain height calculations. Changelog: Fix terrain shading. src/lighting.c | 48 ++++++++++++++++++++++++------------------------ src/map.c | 8 ++++---- 2 files changed, 28 insertions(+), 28 deletions(-) ------------------------- ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Warzone2100-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/warzone2100-commits
