{\r
if(getstati(STAT_WINNING)) // we are the winner\r
{\r
- if(!cvar("cl_artwork_won"))\r
- return;\r
- artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won")))));\r
+ if(cvar("cl_artwork_won"))\r
+ artwork_image = strcat("gfx/artwork_won_", ftos(floor(1 + (random() * cvar("cl_artwork_won")))));\r
}\r
else // we have lost\r
{\r
- if(!cvar("cl_artwork_lost"))\r
- return;\r
- artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost")))));\r
+ if(cvar("cl_artwork_lost"))\r
+ artwork_image = strcat("gfx/artwork_lost_", ftos(floor(1 + (random() * cvar("cl_artwork_lost")))));\r
}\r
artwork_image = strzone(artwork_image);\r
}\r
else\r
artwork_fade = cvar("cl_artwork_alpha");\r
\r
- drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL);\r
+ if(artwork_image != "")\r
+ drawpic(artwork_pos, artwork_image, artwork_size, '1 1 1', artwork_fade, DRAWFLAG_NORMAL);\r
}\r
else\r
{\r