equal
deleted
inserted
replaced
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); |