Clean up cast syntax and rules
This commit is contained in:
@@ -37,8 +37,8 @@ extern "main" func main(argc: i64, argv: [?]cstring): i64
|
||||
direction.y = -1
|
||||
}
|
||||
|
||||
x = x + @floatToInt(i32, direction.x * speed * raylib::GetFrameTime())
|
||||
y = y + @floatToInt(i32, direction.y * speed * raylib::GetFrameTime())
|
||||
x = x + @cast(direction.x * speed * raylib::GetFrameTime())
|
||||
y = y + @cast(direction.y * speed * raylib::GetFrameTime())
|
||||
|
||||
raylib::BeginDrawing()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user