int f;
SWF swf;
SWFFONT* font;
- f = open(filename,O_RDONLY);
+ f = open(filename,O_RDONLY|O_BINARY);
if (f<0) {
warning("Couldn't open file \"%s\": %s", filename, strerror(errno));
font = (SWFFONT*)malloc(sizeof(SWFFONT));
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;
}