diff -crN simutrans/simgraph16.cc 65534over/simgraph16.cc *** simgraph16.cc 2013-05-15 04:37:47.024224000 +0900 --- simgraph16.cc 2014-06-17 22:26:05.839069900 +0900 *************** *** 1013,1019 **** */ static void rezoom(void) { ! uint16 n; for (n = 0; n < anz_images; n++) { if((images[n].recode_flags & FLAG_ZOOMABLE) != 0 && images[n].base_h > 0) { --- 1013,1019 ---- */ static void rezoom(void) { ! image_id n; for (n = 0; n < anz_images; n++) { if((images[n].recode_flags & FLAG_ZOOMABLE) != 0 && images[n].base_h > 0) { *************** *** 1092,1098 **** */ static void recode(void) { ! unsigned n; for (n = 0; n < anz_images; n++) { // recode images only if the recoded image is needed --- 1092,1098 ---- */ static void recode(void) { ! image_id n; for (n = 0; n < anz_images; n++) { // recode images only if the recoded image is needed *************** *** 1877,1883 **** } if( anz_images > alloc_images ) { // overflow ! dbg->fatal( "register_image", "*** Out of images (more than 65534!) ***" ); } images = REALLOC(images, imd, alloc_images); } --- 1877,1883 ---- } if( anz_images > alloc_images ) { // overflow ! dbg->fatal( "register_image", "*** Out of images (more than 4294967294!) ***" ); } images = REALLOC(images, imd, alloc_images); } diff -crN simutrans/simimg.h 65534over/simimg.h *** simimg.h 2011-12-16 15:44:56.264630000 +0900 --- simimg.h 2014-06-17 02:04:38.724341600 +0900 *************** *** 15,22 **** #include "simtypes.h" ! typedef uint16 image_id; ! #define IMG_LEER ((image_id)0xFFFF) #endif --- 15,22 ---- #include "simtypes.h" ! typedef uint32 image_id; ! #define IMG_LEER ((image_id)0xFFFFFFFF) #endif