Changed game version to 3.0.5-RC2. Changed particle system to only open the .ps file in readonly mode

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@247 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2005-07-07 01:02:27 +00:00
parent 779d0dee4e
commit 0a8df3ef6e
4 changed files with 5 additions and 4 deletions

View file

@ -2081,7 +2081,8 @@ void AvHGamerules::PreWorldPrecacheInitParticles()
success=TRFactory::ReadDescriptionsFromStream(trstream, theDescriptionList);
#else
success=TRFactory::ReadDescriptionsFromFile(string(getModDirectory()) + "/" + kBasePSName, theDescriptionList);
string theLevelBaseSystemFile = string(getModDirectory()) + "/" + kBasePSName;
success=TRFactory::ReadDescriptionsFromFile(theLevelBaseSystemFile, theDescriptionList);
#endif
if(success)
@ -2098,7 +2099,7 @@ void AvHGamerules::PreWorldPrecacheInitParticles()
if(theCStrLevelName && !FStrEq(theCStrLevelName, ""))
{
string theLevelName = theCStrLevelName;
string theLevelParticleSystemFile = theLevelName + string(".ps");
string theLevelParticleSystemFile = string(getModDirectory()) + string("/") + theLevelName + string(".ps");
#ifndef LINUX
char *pbuffer = NULL;
int len;

View file

@ -290,7 +290,7 @@ char* AvHSUGetGameVersionString()
theGameVersionString = "v" + MakeStringFromInt(BALANCE_IVAR(kGameVersionMajor))
+ "." + MakeStringFromInt(BALANCE_IVAR(kGameVersionMinor))
+ "." + MakeStringFromInt(BALANCE_IVAR(kGameVersionRevision));
+ "." + MakeStringFromInt(BALANCE_IVAR(kGameVersionRevision)) + "-RC2";
// Add letter on for beta builds
//#ifdef AVH_SECURE_PRERELEASE_BUILD

View file

@ -57,7 +57,7 @@ bool TRFactory::ReadDescriptionsFromFile(const string& inRelativePathFilename, T
bool theSuccess = false;
bool theDescriptionRead = false;
fstream trstream;
trstream.open(inRelativePathFilename.c_str());
trstream.open(inRelativePathFilename.c_str(), ios::in);
if ( trstream.is_open() ) {
do {
// Try to read the next description in