Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
ParkourPenguin
I post too much
Reputation: 152
Joined: 06 Jul 2014
Posts: 4690

PostPosted: Sun Aug 17, 2025 8:19 pm    Post subject:

That custom type isn't multiplying two ints. It's multiplying two floats. `mulss` means "multiply scalar single", with "single" referring to floats.

There is a problem with `cvttss2si` (convert / truncate scalar single to signed integer) if the truncated float is outside the valid range of the signed integer output type. This isn't likely to be relevant here: the float we're converting to an integer was created from an integer already in the game. If there was a chance of the float-to-int conversion overflowing, then what happens in the vanilla game when the integer wraps around is far more concerning.

Of course, users could always enter ridiculous values, but if they do that, it's their fault.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
AylinCE
Review: Approve
Post reference:
ReviewPosted: Mon Aug 18, 2025 12:15 pm

Thanks..
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites