strcpy(me.currentMapAuthor, strdecolorize(MapInfo_Map_author));
strcpy(me.currentMapDescription, MapInfo_Map_description);
strcpy(me.currentMapPreviewImage, strcat("/maps/", MapInfo_Map_bspname));
+ if(!draw_PictureExists(me.currentMapPreviewImage)) // Quake 3 compatibility
+ strcpy(me.currentMapPreviewImage, strcat("/levelshots/", MapInfo_Map_bspname));
me.frame.setText(me.frame, me.currentMapBSPName);
me.titleLabel.setText(me.titleLabel, me.currentMapTitle);
me.authorLabel.setText(me.authorLabel, me.currentMapAuthor);
me.descriptionLabel.setText(me.descriptionLabel, me.currentMapDescription);
- if(draw_PictureSize(me.currentMapPreviewImage) == '0 0 0')
+ if(!draw_PictureExists(me.currentMapPreviewImage))
me.previewImage.src = "nopreview_map";
else
me.previewImage.src = me.currentMapPreviewImage;
{
entity e;
e = me.(typeLabels[i]);
- e.disabled = !(MapInfo_Map_supportedGametypes & GameType_GetID(i).m_flags);
+ e.disabled = !(MapInfo_Map_supportedGametypes & GameType_GetID(i).gametype_flags);
}
MapInfo_ClearTemps();