Skip to content

Commit

Permalink
Convert iIMDShape.min/max from Vector3f to Vector3i, since they are u…
Browse files Browse the repository at this point in the history
…sed in the game state.

Don't know if that could cause any desynchs, but better not to risk it.
  • Loading branch information
Cyp committed Nov 16, 2010
1 parent 6a2991c commit 48c4958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ivis_common/ivisdef.h
Expand Up @@ -77,7 +77,7 @@ typedef struct _iIMDShape {
int texpage;
int tcmaskpage;
int sradius, radius;
Vector3f min, max;
Vector3i min, max;

Vector3f ocen;
unsigned short numFrames;
Expand Down
2 changes: 1 addition & 1 deletion lib/ivis_opengl/piedraw.c
Expand Up @@ -196,7 +196,7 @@ static void pie_Draw3DShape2(iIMDShape *shape, int frame, PIELIGHT colour, PIELI
}
if (pieFlag & pie_RAISE) // collapse
{
glTranslatef(1.0f, (-shape->max.y * (pie_RAISE_SCALE - pieFlagData)) / pie_RAISE_SCALE, 1.0f);
glTranslatef(1.0f, (-shape->max.y * (pie_RAISE_SCALE - pieFlagData)) * (1.0f / pie_RAISE_SCALE), 1.0f);
}

glColor4ubv(colour.vector); // Only need to set once for entire model
Expand Down

0 comments on commit 48c4958

Please sign in to comment.