Skip to content

Commit 60c03cc

Browse files
committed
Remove overspeeding
1 parent 486adab commit 60c03cc

4 files changed

Lines changed: 5 additions & 13 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ option(BTECH_CARGO_COMMANDS "Enable hardcoded cargo commands" ON)
4343
option(BTECH_MW3STATS "Enable MW3-like stats and skills" ON)
4444
option(BTECH_MOVEMENT_MODES "Enable advanced movement modes" ON)
4545
option(BTECH_SCALED_INFRARED "Scale infrared BTH with increasing heat" ON)
46-
option(BTECH_OVERSPEEDING "Allow mech overspeeding" OFF)
4746

4847
option(BTECH_ENABLE_ASAN "Build with AddressSanitizer instrumentation" ON)
4948
option(BTECH_ENABLE_UBSAN "Build with UndefinedBehaviorSanitizer instrumentation" ON)
@@ -166,7 +165,6 @@ set(BT_CARGO_COMMANDS ${BTECH_CARGO_COMMANDS})
166165
set(BT_EXILE_MW3STATS ${BTECH_MW3STATS})
167166
set(BT_MOVEMENT_MODES ${BTECH_MOVEMENT_MODES})
168167
set(BT_SCALED_INFRARED ${BTECH_SCALED_INFRARED})
169-
set(WEIGHT_OVERSPEEDING ${BTECH_OVERSPEEDING})
170168

171169
configure_file(src/cmake/btmux_build_config.h.in
172170
"${BTECH_SOURCE_DIR}/btmux_build_config.h")

TODO

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## MUX Todos in the /src/ dir
44

5+
* Can we get rid of mymath.h in favor of standards?
56
* Edit attributes from @examine via OSC8 and prepare:?
67
* Consolidate the various logging files in server
78
* Remove arbitrary logs compile directive and keep it on
@@ -30,4 +31,7 @@
3031
## BTech Todos in the /btech/ dir
3132

3233
* Break commodities out of hcode?
33-
* What is CharacterXpRanking?
34+
* What is CharacterXpRanking?
35+
* Add `-fhardened` to CMake for mux and btech. May require disabling debug builds.
36+
* remove MechRuntimeState.unused
37+
* Replace CVS headers

src/btech/movement/mech_move.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -514,22 +514,13 @@ float mech_cargo_maximum_speed(Mech *mech, float mspeed) {
514514
if (3 * sv < (mech_cached_lugged_weight(mech) + mv))
515515
mspeed = 0.0F;
516516
else {
517-
#ifdef WEIGHT_OVERSPEEDING
518-
mspeed = mech_maximum_speed(mech) * mech_tonnage(mech) * 1024.0 /
519-
mech_movement_maximum_int(
520-
1024 * mech_real_tonnage(mech) +
521-
mech_cached_lugged_weight(mech) / 3,
522-
(mech_movement_maximum_int(
523-
1024, mv + mech_cached_lugged_weight(mech))));
524-
#else
525517
int const tonnage = mech_tonnage(mech);
526518
int const denominator = mech_movement_maximum_int(
527519
1024 * tonnage + mech_cached_lugged_weight(mech) / 3,
528520
mech_movement_maximum_int(1024,
529521
mv + mech_cached_lugged_weight(mech)));
530522
mspeed = mech_maximum_speed(mech) * (float)tonnage * 1024.0F /
531523
(float)denominator;
532-
#endif /* WEIGHT_OVERSPEEDING */
533524
}
534525
}
535526
int const speed_in_movement_points = clamp_float_to_int(mspeed / MP1);

src/cmake/btmux_build_config.h.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#cmakedefine BT_FREETECHTIME 1
1010
#cmakedefine BT_MOVEMENT_MODES 1
1111
#cmakedefine BT_SCALED_INFRARED 1
12-
#cmakedefine WEIGHT_OVERSPEEDING 1
1312

1413
#define BTMUX_NAME "@BTMUX_NAME@"
1514
#define BTMUX_VERSION_STRING "@BTMUX_VERSION_STRING@"

0 commit comments

Comments
 (0)