Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix droid parts not flying away from exploding droids, when above water.

This was due to unsigned comparison with the negative water height.

Fixes ticket:3681.
  • Loading branch information...
commit 60c235ab3ff835edb60b0e0c020923351c893893 1 parent 0773a9f
Cyp authored September 20, 2012

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  src/effects.cpp
3  src/effects.cpp
@@ -1092,7 +1092,6 @@ static void updateGraviton(EFFECT *psEffect)
1092 1092
 {
1093 1093
 	float	accel;
1094 1094
 	Vector3i dv;
1095  
-	UDWORD	groundHeight;
1096 1095
 	MAPTILE	*psTile;
1097 1096
 	LIGHT	light;
1098 1097
 
@@ -1125,7 +1124,7 @@ static void updateGraviton(EFFECT *psEffect)
1125 1124
 		return;
1126 1125
 	}
1127 1126
 
1128  
-	groundHeight = map_Height(psEffect->position.x, psEffect->position.z);
  1127
+	int groundHeight = map_Height(psEffect->position.x, psEffect->position.z);
1129 1128
 
1130 1129
 	/* If it's going up and it's still under the landscape, then remove it... */
1131 1130
 	if (psEffect->position.y<groundHeight

0 notes on commit 60c235a

Please sign in to comment.
Something went wrong with that request. Please try again.