Game Development Community

Code question - is this correct?

by David Dougher · in Torque Game Engine Advanced · 04/24/2006 (5:21 am) · 2 replies

ResManager.cpp around - lines 290-300

bool ResManager::scanZip (ResourceObject * zipObject)
{
// now open the volume and add all its resources to the dictionary
ZipAggregate zipAggregate;
if (zipAggregate.
openAggregate (buildPath (zipObject->zipPath, zipObject->zipName)) ==
false)
{
Con::errorf ("Error opening zip (%s/%s), need to handle this better...",
zipObject->zipPath, zipObject->zipName);
return false;
}

5th line - notice the period - is this some kind of construction I am unaware of - or is this just a typo that hasn't been caught yet?

ps. Not being sarcastic here - in case this is just a typo. I have learned so many new constructions since going through the code here I am no longer sure that I ever understood C++ as well as I thought I did - and I was actually a reviewer of one of the first C++ books out there... Amazing how much the language has grown!

About the author

Owner - Pariah Games, Adjunct Professor - Bristol Community College, Mentor - Game Design - Met School Newport, Mentor - Game Design - Met School Providence


#1
04/24/2006 (8:33 am)
Nothing wrong, just a line feed at a strange place.

Read it :

if (zipAggregate.openAggregate (buildPath (zipObject->zipPath, zipObject->zipName)) == false)
#2
04/24/2006 (8:57 am)
Doh! I have definitely been looking at the screen too long today. Thanks...