Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualpolyfrag

Posted 29 April 2013 - 02:55 AM

No u

 

https://github.com/id-Software/DOOM-3-BFG/blob/master/neo/framework/Common.cpp

 

void idCommonLocal::FilterLangList( idStrList* list, idStr lang ) {

	idStr temp; // <-- THIS
	for( int i = 0; i < list->Num(); i++ ) {
		temp = (*list)[i]; // <-- HERE
		temp = temp.Right(temp.Length()-strlen("strings/"));
		temp = temp.Left(lang.Length());
		if(idStr::Icmp(temp, lang) != 0) {
			list->RemoveIndex(i);
			i--;
		}
	}
}

#1polyfrag

Posted 29 April 2013 - 02:55 AM

No u

 

https://github.com/id-Software/DOOM-3-BFG/blob/master/neo/framework/Common.cpp

 

void idCommonLocal::FilterLangList( idStrList* list, idStr lang ) {

	idStr temp;
	for( int i = 0; i < list->Num(); i++ ) {
		temp = (*list)[i];
		temp = temp.Right(temp.Length()-strlen("strings/"));
		temp = temp.Left(lang.Length());
		if(idStr::Icmp(temp, lang) != 0) {
			list->RemoveIndex(i);
			i--;
		}
	}
}

PARTNERS