src/strgen/strgen.cpp
branchgamebalance
changeset 9910 0b2aebc8283e
parent 9895 7bd07f43b0e3
child 9911 0b8b245a2391
equal deleted inserted replaced
9909:dce9a6923bb7 9910:0b2aebc8283e
   728 
   728 
   729 static bool CheckCommandsMatch(char *a, char *b, const char *name)
   729 static bool CheckCommandsMatch(char *a, char *b, const char *name)
   730 {
   730 {
   731 	ParsedCommandStruct templ;
   731 	ParsedCommandStruct templ;
   732 	ParsedCommandStruct lang;
   732 	ParsedCommandStruct lang;
   733 	int i,j;
   733 	int i, j;
   734 	bool result = true;
   734 	bool result = true;
   735 
   735 
   736 	ExtractCommandString(&templ, b, true);
   736 	ExtractCommandString(&templ, b, true);
   737 	ExtractCommandString(&lang, a, true);
   737 	ExtractCommandString(&lang, a, true);
   738 
   738 
   912 	// derive some strings from english....
   912 	// derive some strings from english....
   913 
   913 
   914 	in = fopen(file, "r");
   914 	in = fopen(file, "r");
   915 	if (in == NULL) fatal("Cannot open file");
   915 	if (in == NULL) fatal("Cannot open file");
   916 	_cur_line = 1;
   916 	_cur_line = 1;
   917 	while (fgets(buf, sizeof(buf),in) != NULL) {
   917 	while (fgets(buf, sizeof(buf), in) != NULL) {
   918 		rstrip(buf);
   918 		rstrip(buf);
   919 		HandleString(buf, english);
   919 		HandleString(buf, english);
   920 		_cur_line++;
   920 		_cur_line++;
   921 	}
   921 	}
   922 	fclose(in);
   922 	fclose(in);