File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -367,10 +367,10 @@ class Settings {
367
367
optionsSettings .reflectionDetail = 2 ;
368
368
if (controlsSettings .controllerVerticalCenter == null )
369
369
controlsSettings .controllerVerticalCenter = true ;
370
- if (controlsSettings .huntRandom == null )
371
- controlsSettings .huntRandom = false ;
372
- if (controlsSettings .fastLoad == null )
373
- controlsSettings .fastLoad = false ;
370
+ if (optionsSettings .huntRandom == null )
371
+ optionsSettings .huntRandom = false ;
372
+ if (optionsSettings .fastLoad == null )
373
+ optionsSettings .fastLoad = false ;
374
374
#end
375
375
if (optionsSettings .maxPixelRatio == 0 #if js || optionsSettings .maxPixelRatio == null #end)
376
376
optionsSettings .maxPixelRatio = 1 ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package fs;
3
3
import hxd .fs .LocalFileSystem ;
4
4
import src .Settings ;
5
5
6
+ #if hl
6
7
class TorqueFileEntry extends LocalEntry {
7
8
override function load (? onReady : Void -> Void ): Void {
8
9
#if macro
@@ -17,6 +18,7 @@ class TorqueFileEntry extends LocalEntry {
17
18
#end
18
19
}
19
20
}
21
+ #end
20
22
21
23
class TorqueFileSystem extends LocalFileSystem {
22
24
#if hl
Original file line number Diff line number Diff line change @@ -302,16 +302,20 @@ class MarblePickerGui extends GuiImage {
302
302
mbOpt .position = new Vector (380 , yPos );
303
303
mbOpt .extent = new Vector (815 , 94 );
304
304
mbOpt .setCurrentOption (Settings .optionsSettings .marbleIndex );
305
+ var curToken = 0 ;
305
306
mbOpt .onChangeFunc = (idx ) -> {
306
307
var selectedMarble = marbleData [idx ];
307
308
Settings .optionsSettings .marbleIndex = idx ;
308
309
Settings .optionsSettings .marbleCategoryIndex = 0 ;
309
310
Settings .optionsSettings .marbleSkin = selectedMarble .skin ;
310
311
Settings .optionsSettings .marbleModel = selectedMarble .dts ;
311
312
Settings .optionsSettings .marbleShader = selectedMarble .shader ;
313
+ var changeToken = curToken ++ ;
312
314
ResourceLoader .load (Settings .optionsSettings .marbleModel ).entry .load (() -> {
313
315
@:privateAccess MarbleGame .instance .previewWorld .removeMarble (myMarb );
314
316
@:privateAccess MarbleGame .instance .previewWorld .spawnMarble (marb -> {
317
+ if (changeToken + 1 != curToken )
318
+ return ;
315
319
var spawnPos = @:privateAccess MarbleGame .instance .scene .camera .pos .add (new Vector (0 , 1 , 1 ));
316
320
var velAdd = new Vector ((1 - 2 * Math .random ()) * 2 , (1 - 2 * Math .random ()) * 1.5 , (1 - 2 * Math .random ()) * 1 );
317
321
velAdd = velAdd .add (new Vector (0 , 3 , 0 ));
You can’t perform that action at this time.
0 commit comments