0x1F9F1 / Open1560

A mod for Midtown Madness 1, primarily focused on supporting modern computers and fixing bugs.
https://0x1F9F1.github.io/Open1560
GNU General Public License v3.0
110 stars 8 forks source link

[1] aiGoalFollowWayPts::Update() #137

Open KcRobin9 opened 8 months ago

KcRobin9 commented 8 months ago

Notes 1) Code compiles in Debug mode and runs fine in-game at first glance (e.g. change "Car->Sim.ICS.AngularMomentum *= 0.1f;") 2) Doesn't compile in Final mode: ...\mmai\aiGoalFollowWayPts.cpp(138,59): error C2220: the following warning is treated as an error ...\mmai\aiGoalFollowWayPts.cpp(138,59): warning C4244: '=': conversion from 'i32' to 'i16', possible loss of data 3) IDA suggest "f32 arg10" instead of the current "i16 arg10" for the function "DetermineOppMapComponent"

KcRobin9 commented 1 month ago

The code builds in Final mode and works in the game.

Before merging, maybe a stylistic check on your side to see if everything is OK?