Skip to content

Commit

Permalink
windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Apr 25, 2024
1 parent f1de2bd commit ca3c2f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void addPropsToCmGrid(
titanfall::GeoSet &propGeoSet = r2GeoSets.emplace_back();
propGeoSet = {
.straddle_group = 0,
.num_primitives = (int16_t)propPrimitives.size(),
.num_primitives = (uint16_t)propPrimitives.size(),
.first_primitive = (uint32_t)((propPrimitives.size() & 0x1FFFFF) << 8)};
r2Cell.num_geo_sets++;
for (size_t i = 0; i < propPrimitives.size(); i++) {
Expand Down Expand Up @@ -262,7 +262,7 @@ void convertTricoll(
for (std::pair<uint16_t, uint16_t> pair : starts) {
uint16_t start = pair.first;
uint16_t num_bevels = pair.second;
BitReader read {&r1Indices[first_bevel_index], 10 * start};
BitReader read {&r1Indices[first_bevel_index], (uint64_t)(10 * start)};
uint16_t writePtr = start;
if (num_bevels == 15) {
uint32_t index;
Expand Down

0 comments on commit ca3c2f4

Please sign in to comment.