- name[MAXNAME] = 0;
-
- if (arg_basedir)
- {
- snprintf(name, MAXNAME+2, "%s/%s/%s", arg_basedir, EM_SND_DIR,
- sound_names[i]);
- }
- else
- {
- snprintf(name, MAXNAME+2, "%s/%s", EM_SND_DIR, sound_names[i]);
- }
-
- if (name[MAXNAME])
- Error(ERR_EXIT, "buffer overflow when reading sounds directory");
-
- if (read_sample(name, &sound_data[i], &sound_length[i]))
- return(1);
-
- {
- short *ptr, *stop;
- int mult = sound_volume[i] * 65536 / (100 * MIXER_MAX);
- stop = sound_data[i] + sound_length[i];
- for (ptr = sound_data[i]; ptr < stop; ptr++)
- *ptr = (*ptr * mult) / 65536;
- }
+ lev.cavebuf[x][y] = Zborder;
+ lev.nextbuf[x][y] = Zborder;
+ lev.drawbuf[x][y] = Zborder;
+ lev.boombuf[x][y] = Xblank;