Fixes
This commit is contained in:
@@ -25,6 +25,13 @@ void updateFurnace(Tile *tile) {
|
||||
|
||||
if (targetOutItemType != TYPE_AIR) {
|
||||
if (tile->miscVal == 0) {
|
||||
if (outItem->type != TYPE_AIR) {
|
||||
if (tile->audioCh < NUM_SYNTH_VOICES) {
|
||||
audioData.synthVoices[tile->audioCh].volume = 0;
|
||||
}
|
||||
tile->fixedFrame = 1;
|
||||
return;
|
||||
}
|
||||
tile->audioCh = getAvailableChannel();
|
||||
if (tile->audioCh < NUM_SYNTH_VOICES) {
|
||||
audioData.synthVoices[tile->audioCh].volume = 255;
|
||||
@@ -34,6 +41,7 @@ void updateFurnace(Tile *tile) {
|
||||
audioData.synthVoices[tile->audioCh].waveform = WAVE_SINE;
|
||||
audioData.synthVoices[tile->audioCh].frequency = 200;
|
||||
}
|
||||
tile->fixedFrame = 0;
|
||||
}
|
||||
++audioData.synthVoices[tile->audioCh].frequency;
|
||||
if (audioData.synthVoices[tile->audioCh].volume < 255) {
|
||||
@@ -43,10 +51,13 @@ void updateFurnace(Tile *tile) {
|
||||
if (tile->audioCh < NUM_SYNTH_VOICES) {
|
||||
audioData.synthVoices[tile->audioCh].volume = 0;
|
||||
}
|
||||
tile->fixedFrame = 1;
|
||||
tile->miscVal = 0;
|
||||
inItem->type = 0;
|
||||
outItem->type = targetOutItemType;
|
||||
outItem->offset = -0.5f;
|
||||
}
|
||||
} else {
|
||||
tile->fixedFrame = 1;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user