add ability for map editor to recognize and load pcx files

This commit is contained in:
Gered 2019-11-04 20:27:26 -05:00
parent e35ecef214
commit f992d41e11

View file

@ -53,17 +53,25 @@ short LoadBitmap(short BitmapNumber,char *BitmapName,short BitmapType)
LoadType = 0; LoadType = 0;
if (!(stricmp(GetExtent(BitmapName),"BBM"))) if (!(stricmp(GetExtent(BitmapName),"BBM")))
LoadType = 1; LoadType = 1;
if (!(stricmp(GetExtent(BitmapName),"GIF"))) if (!(stricmp(GetExtent(BitmapName),"GIF")))
LoadType = 2; LoadType = 2;
if (!(stricmp(GetExtent(BitmapName),"PCX")))
LoadType = 3;
if (LoadType) if (LoadType)
{ {
if (LoadType == 1) switch (LoadType) {
bmp = AckReadiff(BitmapName); case 1:
else bmp = AckReadiff(BitmapName);
bmp = AckReadgif(BitmapName); break;
case 2:
bmp = AckReadgif(BitmapName);
break;
case 3:
bmp = AckReadPCX(BitmapName);
break;
}
if (bmp == NULL) if (bmp == NULL)
{ {