Graphics: Transition without previous freeze is a noop

This commit is contained in:
Jonas Kulla 2014-08-23 21:26:50 +02:00
parent 4baf7b5a5a
commit 3968ebb538
1 changed files with 3 additions and 0 deletions

View File

@ -600,6 +600,9 @@ void Graphics::transition(int duration,
const char *filename,
int vague)
{
if (!p->frozen)
return;
vague = clamp(vague, 0, 512);
Bitmap *transMap = filename ? new Bitmap(filename) : 0;