Game Development Community

Bugs.

by Jon Frisby · in Torque Game Builder · 04/05/2007 (12:57 am) · 0 replies

First, t2dTileMap.cc, circa line 1205 reads:
ConsoleMethod( t2dTileLayer, createLayer, void, 6, 6, "( S32 tileCountX, S32 tileCountY, F32 tileSizeX, F32 tileSizeY )" )
{
   F32 tileCountX = dAtof( argv[2] );
   F32 tileCountY = dAtof( argv[3] );
   F32 tileSizeX = dAtof( argv[4] );
   F32 tileSizeY = dAtof( argv[5] );
   object->createLayer( tileCountX, tileCountY, tileSizeX, tileSizeY );
}

tileCountX/Y are supposed to be S32s according to the docs and according to the compiler they are supposed to be U32s.


Also in that file, circa line 394:
Con::warnf("t2dTileMap::getTileLayer() - Invalid Tile Layer '%d'!  Currently '%d' Layers available.", layerIndex, layerCount);  
      return -1;

SimObjectId is an unsigned int. Should this be returning 0 instead?


Same file, circa line 3865:
//  0 = No Intersections
//  1 = 1 Intersection
// -1 = Coincident
U32 t2dTileLayer::getLineLineIntersection( t2dVector a1, t2dVector a2, t2dVector b1, t2dVector b2, Vector<t2dVector>& intersections )

It seems this needs to be returning an S32.