From: kramm Date: Sat, 5 Apr 2003 16:31:15 +0000 (+0000) Subject: nomultiple fix X-Git-Tag: release-0-4-4~46 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=5d0ae92bbb26452b5b84bcd99dc60a7f781d12a0 nomultiple fix --- diff --git a/src/swfc.c b/src/swfc.c index f4d07ae..d2ef74d 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -1332,8 +1332,13 @@ static int c_play(map_t*args) char*name = lu(args, "sound"); char*loop = lu(args, "loop"); char*nomultiple = lu(args, "nomultiple"); + int nm = 0; + if(!strcmp(nomultiple, "nomultiple")) + nm = 1; + else + nm = parseInt(nomultiple); - s_playsound(name, parseInt(loop), parseInt(nomultiple), 0); + s_playsound(name, parseInt(loop), nm, 0); return 0; }