@@ -265,21 +265,19 @@ struct RM_Sequencer
265
265
inline auto off_len_exceeds_max () -> bool
266
266
{
267
267
// haven't exceeded anything
268
- if (_rm .off_len <= max_off_spacing )
268
+ if (_rm .off_len <= max_off_spacing ) {
269
269
return false;
270
+ }
270
271
271
- if (had_burst ) {
272
- // already had a burst and exceeding normal limit
273
- return true;
274
- } else if (_rm .off_len > max_burst_len ) {
275
- // exceeded the burst limit
272
+ // already had a burst and exceeding normal limit or exceeded the burst
273
+ // limit
274
+ if (had_burst || _rm .off_len > max_burst_len ) {
276
275
return true;
277
- } else {
278
- // have exceeded the normal limit but not had a burst yet, set
279
- // bursting to true and return false
280
- is_bursting = true;
281
- return false;
282
276
}
277
+ // have exceeded the normal limit but not had a burst yet, set
278
+ // bursting to true and return false
279
+ is_bursting = true;
280
+ return false;
283
281
}
284
282
285
283
inline auto jack_len_exceeds_max () -> bool
@@ -392,8 +390,10 @@ struct RM_Sequencer
392
390
// metatype won't be set until it finds 1212, but we want to
393
391
// explicitly track the number of off_anchor taps in the oht, so
394
392
// boost by 1 when we see meta_oht and oht_len == 0
395
- if (_rm .oht_len == 0 )
393
+ if (_rm .oht_len == 0 ) {
394
+
396
395
_rm .add_oht_tap ();
396
+ }
397
397
398
398
_rm .add_oht_tap ();
399
399
if (oht_len_exceeds_max ()) {
@@ -452,8 +452,10 @@ struct RM_Sequencer
452
452
// in the anchoring block because technically jacks can either be on the
453
453
// anchor column or not, and i don't want to have to split logic again
454
454
// between anchor column jacks and off anchor jacks on the same hand
455
- if (as ._ct == _ct )
455
+ if (as ._ct == _ct ) {
456
+
456
457
last_anchor_time = as ._last ;
458
+ }
457
459
458
460
// determine what we should do
459
461
switch (bt ) {
@@ -526,14 +528,15 @@ struct RM_Sequencer
526
528
527
529
inline auto get_difficulty () -> float
528
530
{
529
- if (_status == rm_inactive || _rm ._len < 3 )
530
- return 1.f ;
531
+ if (_status == rm_inactive || _rm ._len < 3 ) {
532
+ return 1.F ;
533
+ }
531
534
532
535
float flool = ms_from (last_anchor_time , _start );
533
536
534
537
// may be unnecessary
535
538
float glunk =
536
- CalcClamp (static_cast < float > (_rm .off_taps_sh ) / 3.f , 0.1f , 1.f );
539
+ CalcClamp (static_cast < float > (_rm .off_taps_sh ) / 3.F , 0.1F , 1.F );
537
540
538
541
float pule = (flool + 25.F ) / static_cast < float > (_rm ._len - 1 );
539
542
float drool = ms_to_scaled_nps (pule );
0 commit comments