src/heightmap.cpp
branchcpp_gui
changeset 6285 187e3ef04cc9
parent 5869 33d51b7f639d
child 6298 c30fe89622df
child 6548 ca6b0556e9ae
equal deleted inserted replaced
6284:45d0233e7d79 6285:187e3ef04cc9
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file heightmap.cpp */
     2 
     4 
     3 #include "stdafx.h"
     5 #include "stdafx.h"
     4 #include "openttd.h"
     6 #include "openttd.h"
     5 #include "variables.h"
     7 #include "variables.h"
     6 #include "functions.h"
     8 #include "functions.h"
   224 	FILE *f;
   226 	FILE *f;
   225 	BmpInfo info;
   227 	BmpInfo info;
   226 	BmpData data;
   228 	BmpData data;
   227 	BmpBuffer buffer;
   229 	BmpBuffer buffer;
   228 
   230 
   229 	// Init BmpData
   231 	/* Init BmpData */
   230 	memset(&data, 0, sizeof(data));
   232 	memset(&data, 0, sizeof(data));
   231 
   233 
   232 	f = fopen(filename, "rb");
   234 	f = fopen(filename, "rb");
   233 	if (f == NULL) {
   235 	if (f == NULL) {
   234 		ShowErrorMessage(STR_PNGMAP_ERR_FILE_NOT_FOUND, STR_BMPMAP_ERROR, 0, 0);
   236 		ShowErrorMessage(STR_PNGMAP_ERR_FILE_NOT_FOUND, STR_BMPMAP_ERROR, 0, 0);