• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Crashbug *

Status
Not open for further replies.

klekSu

Stroke my ego.
Joined
Nov 4, 2008
Messages
1,285
Reaction score
18
W którym revie został naprawiony ten bug z domkami i *? O dziwo zdaża mi się to na linuxie teraz. Używam reva 3554 i podobno już tego nie było :p ma ktoś na to fixa?
 
A podzielisz się samym fixem? :p
 
"O dziwo zdaża mi się to na linuxie teraz."
Wcześniej nie było? Jesteś 100% pewien że to jest * bug?
 
"Porównaj z poprzednią wersją"

Code:
bool replaceString(std::string& text, const std::string key, const std::string value)
{
	std::string::size_type start = text.find(key), pos = 0;
	for(; start != std::string::npos; start = text.find(key, pos))
	{
		text.replace(start, key.size(), value);
		pos += start + key.size();
	}

	return true;
}


@up
Nie było wcześniej, aż do momentu błędnego fixu dla okienek.
 
Napisz mi gdzie ten kod bo mam windows 7 i nie umiem wyszukiwać zawartości plików :p a notepad++ chujowy uzywam gVima :p

EDIT: tools.cpp, fixed fenx :thumbup: nie mogę dać reputa na razie, dam potem :p
 
Last edited:
replace in tootls.cpp
Code:
bool replaceString(std::string& text, const std::string key, const std::string value)
{
	std::string::size_type start = text.find(key), pos = 0;
	for(; start != std::string::npos; start = text.find(key, pos))
	{
		text.replace(start, key.size(), value);
		pos += start + key.size();
	}

	return true;
}
 
Status
Not open for further replies.
Back
Top