summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorleo2000-09-19 15:13:38 +0000
committerleo2000-09-19 15:13:38 +0000
commit4d36cf3cbdc212caebfa6732538b181e9e4ab21e (patch)
tree5ee19b4ffc743dec5eee836fea11a1869ded47ab /common
parent5b438aece3631a55ac7231fc54267ecab8f54916 (diff)
More PPC fixes
git-svn-id: http://svn.leocad.org/trunk@134 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common')
-rw-r--r--common/pieceinf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/pieceinf.cpp b/common/pieceinf.cpp
index b042ca5..92aa1cb 100644
--- a/common/pieceinf.cpp
+++ b/common/pieceinf.cpp
@@ -361,7 +361,7 @@ void PieceInfo::LoadInformation()
pConnection->type = *bytes;
bytes++;
- shorts = GINT16((short*)bytes);
+ shorts = (short*)bytes;
pConnection->center[0] = (float)(GINT16(*shorts))*scale;
shorts++;
pConnection->center[1] = (float)(GINT16(*shorts))*scale;
@@ -394,7 +394,7 @@ void PieceInfo::LoadInformation()
strcpy(name, (char*)bytes);
tex->texture = project->FindTexture(name);
- shorts = GINT16((short*)(bytes + 8));
+ shorts = (short*)(bytes + 8);
for (i = 0; i < 4; i++)
{
tex->vertex[i][0] = (float)GINT16(shorts[0])*scale;
@@ -510,7 +510,7 @@ void PieceInfo::LoadInformation()
m_nFlags &= ~LC_PIECE_LONGDATA;
// Copy the 'fixed' vertexes
- shorts = GINT16((short*)(longs + 1));
+ shorts = (short*)(longs + 1);
for (verts = 0; verts < GUINT32(*longs); verts++)
{
m_fVertexArray[verts*3] = (float)GINT16(*shorts)*scale;