src/gfxinit.cpp
changeset 10839 a62547c31fdb
parent 10800 5629c1896792
equal deleted inserted replaced
10838:1dd920e2c20d 10839:a62547c31fdb
    53 
    53 
    54 	while (LoadNextSprite(load_index, file_index, sprite_id)) {
    54 	while (LoadNextSprite(load_index, file_index, sprite_id)) {
    55 		load_index++;
    55 		load_index++;
    56 		sprite_id++;
    56 		sprite_id++;
    57 		if (load_index >= MAX_SPRITES) {
    57 		if (load_index >= MAX_SPRITES) {
    58 			error("Too many sprites. Recompile with higher MAX_SPRITES value or remove some custom GRF files.");
    58 			usererror("Too many sprites. Recompile with higher MAX_SPRITES value or remove some custom GRF files.");
    59 		}
    59 		}
    60 	}
    60 	}
    61 	DEBUG(sprite, 2, "Currently %i sprites are loaded", load_index);
    61 	DEBUG(sprite, 2, "Currently %i sprites are loaded", load_index);
    62 
    62 
    63 	return load_index - load_index_org;
    63 	return load_index - load_index_org;