-void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
-{
-// FILE *f;
- m8_header_t *m8_header;
- rgb_t *palette;
- int i, num_pixels, size;
- char text_buf[255] = { 0 };
- char *text_dot_pos;
- unsigned int length;
- unsigned char *palette_ent, *buf_temp;
- unsigned char *buffer, *m8_file_buffer;
-
- strcpy(text_buf, name);
- text_dot_pos = strchr(text_buf, '.');
- if (text_dot_pos)
- *text_dot_pos = 0;
- // Fix for .pcx.m8 extention
- strcat(text_buf, ".pcx.m8");
-
- // open file
- if ( (length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0)) == (unsigned int) -1)
- {
- strcpy(text_buf, name);
- for(i=(strlen(text_buf)-1); i>0; i--)
- {
- if(text_buf[i]=='.')
+void LoadM8( const char *name, unsigned char **pic, int *width, int *height ){
+// FILE *f;
+ m8_header_t *m8_header;
+ rgb_t *palette;
+ int i, num_pixels, size;
+ char text_buf[255] = { 0 };
+ char *text_dot_pos;
+ unsigned int length;
+ unsigned char *palette_ent, *buf_temp;
+ unsigned char *buffer, *m8_file_buffer;
+
+ strcpy( text_buf, name );
+ text_dot_pos = strchr( text_buf, '.' );
+ if ( text_dot_pos ) {
+ *text_dot_pos = 0;
+ }
+ // Fix for .pcx.m8 extention
+ strcat( text_buf, ".pcx.m8" );
+
+ // open file
+ if ( ( length = vfsLoadFile( (char *) text_buf, (void **) &m8_file_buffer, 0 ) ) == (unsigned int) -1 ) {
+ strcpy( text_buf, name );
+ for ( i = ( strlen( text_buf ) - 1 ); i > 0; i-- )