File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
BizHawk.Client.Common/movie
BizHawk.Client.EmuHawk/tools Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
using System . Globalization ;
3
3
using System . IO ;
4
4
5
- using BizHawk . Common . NumberExtensions ;
6
5
using BizHawk . Common . StringExtensions ;
7
6
using BizHawk . Emulation . Common ;
8
7
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public string ButtonName
23
23
24
24
public double Probability
25
25
{
26
- get => decimal . ToDouble ( ProbabilityUpDown . Value ) ;
26
+ get => ProbabilityUpDown . Value . ConvertToF64 ( ) ;
27
27
set => ProbabilityUpDown . Value = new ( value ) ;
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ public int X
196
196
XNumeric . Value = XNumeric . Maximum ;
197
197
}
198
198
199
- _stickyHoldController . SetAxisHold ( XName , ( decimal . ToSingle ( XNumeric . Value ) * MultiplierX ) . RoundToInt ( ) ) ;
199
+ _stickyHoldController . SetAxisHold ( XName , ( XNumeric . Value . ConvertToF32 ( ) * MultiplierX ) . RoundToInt ( ) ) ;
200
200
_isSet = true ;
201
201
}
202
202
}
@@ -218,7 +218,7 @@ public int Y
218
218
YNumeric . Value = YNumeric . Maximum ;
219
219
}
220
220
221
- _stickyHoldController . SetAxisHold ( YName , ( decimal . ToSingle ( YNumeric . Value ) * MultiplierY ) . RoundToInt ( ) ) ;
221
+ _stickyHoldController . SetAxisHold ( YName , ( YNumeric . Value . ConvertToF32 ( ) * MultiplierY ) . RoundToInt ( ) ) ;
222
222
_isSet = true ;
223
223
}
224
224
}
You can’t perform that action at this time.
0 commit comments