Game Development Community

EMITTER texture missing in EditGeometry::insertTexture()

by Tom Spilman · in Torque Game Engine Advanced · 12/21/2004 (6:04 pm) · 2 replies

Small bug in EditGeometry::insertTexture() in map2dif. You need to add the new emitter texture into the if block like so:

if(dStricmp(pInsert, "NULL") != 0 &&
      dStricmp(pInsert, "ORIGIN") != 0 &&
      dStricmp(pInsert, "TRIGGER") != 0 &&
      dStricmp(pInsert, "FORCEFIELD") != 0 &&
      dStricmp(pInsert, "EMITTER") != 0 )
   {

This lets you use a light_brush without having a dummy texture in the texture path.

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
12/21/2004 (7:59 pm)
Thanks, Tom. On my todo list.
#2
12/23/2004 (10:53 am)
OK, that's checked in now. Thanks again Tom.