Subversion Repositories spk

Rev

Rev 39 | Rev 94 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 59
Line 335... Line 335...
335
		this->sID = entries[pos + 9];
335
		this->sID = entries[pos + 9];
336
 
336
 
337
		this->UpdateGunEntries();
337
		this->UpdateGunEntries();
338
 
338
 
339
		CLEANSPLIT(entries, max);
339
		CLEANSPLIT(entries, max);
-
 
340
 
-
 
341
		this->_capValues();
340
 
342
 
341
		return true;
343
		return true;
342
	}
344
	}
343
 
345
 
344
	CLEANSPLIT(entries, max);
346
	CLEANSPLIT(entries, max);
345
 
347
 
346
	return false;
348
	return false;
347
}
349
}
-
 
350
 
-
 
351
void CShipData::_capValues()
-
 
352
{
-
 
353
	if ( this->iRelVal > 25000000 ) this->iRelVal = 25000000;
-
 
354
	if ( this->iRelValPlayer > 25000000 ) this->iRelValPlayer = 25000000;
-
 
355
}
-
 
356
 
348
 
357
 
349
int CShipData::GetShipClassFromNum(int shipclass)
358
int CShipData::GetShipClassFromNum(int shipclass)
350
{
359
{
351
	int classes[OBJ_SHIP_MAX];
360
	int classes[OBJ_SHIP_MAX];
352
	classes[0] = OBJ_SHIP_TL;
361
	classes[0] = OBJ_SHIP_TL;