Skip to content

Commit

Permalink
Fix the gravity property in the JS file instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Elaviers committed Apr 24, 2018
1 parent 6ba0065 commit 0683543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ElDorito/Source/Web/Ui/WebForge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ namespace
SerializeProperty(writer, "fx_tracing", screenFxProperties->Tracing / 255.0f);
SerializeProperty(writer, "map_disable_push_barrier", (int)((mapModifierProperties->Flags & Forge::ForgeMapModifierProperties::eMapModifierFlags_DisablePushBarrier) != 0));
SerializeProperty(writer, "map_disable_death_barrier", (int)((mapModifierProperties->Flags & Forge::ForgeMapModifierProperties::eMapModifierFlags_DisableDeathBarrier) != 0));
SerializeProperty(writer, "map_physics_gravity", 1.f - (mapModifierProperties->PhysicsGravity / 255.0f));
SerializeProperty(writer, "map_physics_gravity", mapModifierProperties->PhysicsGravity / 255.0f);

SerializeProperty(writer, "camera_fx_exposure", mapModifierProperties->CameraFxExposure / 255.0f);
SerializeProperty(writer, "camera_fx_bloom", mapModifierProperties->CameraFxBloom / 255.0f);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
type: 'range',
label: 'Gravity',
meta: { min: 0, max: 1, step: 0.01 },
getValue: () => properties.map_physics_gravity,
getValue: () => 1.0-properties.map_physics_gravity,
setValue: (value) => onPropertyChange({ ['map_physics_gravity']: 1.0-value })
});
});
Expand Down

0 comments on commit 0683543

Please sign in to comment.