added error message

This commit is contained in:
Bradley Bell 2002-09-07 07:27:19 +00:00
parent c3fc9f1a83
commit e12fa546b9

View file

@ -170,7 +170,8 @@ void nm_draw_background1(char * filename)
//@@Assert(grd_curcanv->cv_bitmap.bm_h == 200);
pcx_error = pcx_get_dimensions(filename, &width, &height);
Assert(pcx_error == PCX_ERROR_NONE);
if (pcx_error != PCX_ERROR_NONE)
Error("Could not open pcx file <%s>\n", filename);
bmp = gr_create_bitmap(width, height);