namegen.c
changeset 959 b031d88c76f3
parent 958 f5ccffdadd48
child 992 7ddeb6074c06
equal deleted inserted replaced
958:f5ccffdadd48 959:b031d88c76f3
   304 	return 0;
   304 	return 0;
   305 }
   305 }
   306 
   306 
   307 static byte MakePolishTownName(byte *buf, uint32 seed)
   307 static byte MakePolishTownName(byte *buf, uint32 seed)
   308 {
   308 {
   309 	int i, j;
   309 	uint i;
       
   310 	uint j;
   310 
   311 
   311 	//null terminates the string for strcat
   312 	//null terminates the string for strcat
   312 	strcpy(buf, "");
   313 	strcpy(buf, "");
   313 
   314 
   314 	// optional first segment
   315 	// optional first segment
   400 	return 0;
   401 	return 0;
   401 }
   402 }
   402 
   403 
   403 static byte MakeHungarianTownName(byte *buf, uint32 seed)
   404 static byte MakeHungarianTownName(byte *buf, uint32 seed)
   404 {
   405 {
   405 	int i;
   406 	uint i;
   406 
   407 
   407 	//null terminates the string for strcat
   408 	//null terminates the string for strcat
   408 	strcpy(buf, "");
   409 	strcpy(buf, "");
   409 
   410 
   410 	if (GetNumberBasedOnSeed(12, 15, seed) < 3)
   411 	if (GetNumberBasedOnSeed(12, 15, seed) < 3)