Commit e8a38f4 1 parent 0081b02 commit e8a38f4 Copy full SHA for e8a38f4
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
#include "pratcam.h"
2
+ #include "brender/brender.h"
2
3
#include "displays.h"
3
4
#include "errors.h"
4
5
#include "flicplay.h"
5
- #include "input.h"
6
6
#include "globvars.h"
7
7
#include "globvrpb.h"
8
8
#include "grafdata.h"
9
9
#include "graphics.h"
10
+ #include "harness/trace.h"
11
+ #include "input.h"
10
12
#include "loading.h"
13
+ #include "pd/sys.h"
11
14
#include "sound.h"
12
15
#include "utility.h"
13
- #include "brender/brender.h"
14
- #include "pd/sys.h"
15
- #include "harness/trace.h"
16
16
#include <stdlib.h>
17
17
18
18
tS3_sound_tag gWhirr_noise = 0 ;
@@ -208,8 +208,8 @@ void NextPratcamChunk() {
208
208
} else {
209
209
gLast_pratcam_frame_time = 0 ;
210
210
random_number = IRandomBetween (0 , 99 );
211
- current_alternative = gPratcam_sequences [gCurrent_pratcam_index ].chunks [gCurrent_pratcam_chunk ].alternatives ;
212
211
for (i = 0 ; i < gPratcam_sequences [gCurrent_pratcam_index ].chunks [gCurrent_pratcam_chunk ].number_of_alternatives ; i ++ ) {
212
+ current_alternative = & gPratcam_sequences [gCurrent_pratcam_index ].chunks [gCurrent_pratcam_chunk ].alternatives [i ];
213
213
random_number -= current_alternative -> chance ;
214
214
if (random_number <= 0 ) {
215
215
gCurrent_pratcam_alternative = i ;
@@ -219,7 +219,7 @@ void NextPratcamChunk() {
219
219
if (current_alternative -> sound_chance == 0 ) {
220
220
return ;
221
221
}
222
- if (!PercentageChance (current_alternative -> sound_chance ) == 0 ) {
222
+ if (!PercentageChance (current_alternative -> sound_chance )) {
223
223
return ;
224
224
}
225
225
if (gCurrent_pratcam_precedence == 0 && DRS3OutletSoundsPlaying (gDriver_outlet )) {
You can’t perform that action at this time.
0 commit comments