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;
if (!(stricmp(GetExtent(BitmapName),"BBM")))
LoadType = 1;
if (!(stricmp(GetExtent(BitmapName),"GIF")))
LoadType = 2;
if (!(stricmp(GetExtent(BitmapName),"PCX")))
LoadType = 3;
if (LoadType)
{
if (LoadType == 1)
bmp = AckReadiff(BitmapName);
else
bmp = AckReadgif(BitmapName);
switch (LoadType) {
case 1:
bmp = AckReadiff(BitmapName);
break;
case 2:
bmp = AckReadgif(BitmapName);
break;
case 3:
bmp = AckReadPCX(BitmapName);
break;
}
if (bmp == NULL)
{