Subversion Repositories spk

Rev

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

Rev 218 Rev 226
Line 393... Line 393...
393
					if ( strs[i] == L"1" )
393
					if ( strs[i] == L"1" )
394
						this->AddShipyard(cur);
394
						this->AddShipyard(cur);
395
				}
395
				}
396
			}
396
			}
397
		}
397
		}
398
		else if ( first.Compare("ScreenShot") )
398
		else if ( first.Compare(L"ScreenShot") )
399
		{
399
		{
400
			int size = rest.token(L" ", 1);
400
			int size = rest.token(L" ", 1);
401
			Utils::WString ext = rest.token(L" ", 2);
401
			Utils::WString ext = rest.token(L" ", 2);
402
 
402
 
403
			C_File *newFile = this->addFile(m_sID + L"_" + (long)(this->countFiles(FILETYPE_SCREEN) + 1) + L"." + ext, L"", FILETYPE_SCREEN);
403
			C_File *newFile = this->addFile(m_sID + L"_" + (long)(this->countFiles(FILETYPE_SCREEN) + 1) + L"." + ext, L"", FILETYPE_SCREEN);
Line 1773... Line 1773...
1773
				while (data[pos] == ' ') pos++;
1773
				while (data[pos] == ' ') pos++;
1774
				unsigned char* line = (data + pos);
1774
				unsigned char* line = (data + pos);
1775
				while (data[pos] != ';') pos++;
1775
				while (data[pos] != ';') pos++;
1776
				data[pos] = '\0';
1776
				data[pos] = '\0';
1777
 
1777
 
1778
				out.pushBack((char*)line);
1778
				out.pushBack(Utils::WString::FromString((char*)line));
1779
				online = false;
1779
				online = false;
1780
			}
1780
			}
1781
		}
1781
		}
1782
	}
1782
	}
1783
 
1783
 
Line 2347... Line 2347...
2347
						if ( id == textId || id == (textId + 1) )
2347
						if ( id == textId || id == (textId + 1) )
2348
						{
2348
						{
2349
							pos = line.findPos(L">", endpos);
2349
							pos = line.findPos(L">", endpos);
2350
							if ( pos != -1 )
2350
							if ( pos != -1 )
2351
							{
2351
							{
2352
								endpos = line.findPos("L</t>", pos);
2352
								endpos = line.findPos(L"</t>", pos);
2353
								if ( endpos != -1 )
2353
								if ( endpos != -1 )
2354
								{
2354
								{
2355
									if ( id == textId )
2355
									if ( id == textId )
2356
										shipName = line.mid(pos + 1, endpos);
2356
										shipName = line.mid(pos + 1, endpos);
2357
									else
2357
									else