Compiles and working

This commit is contained in:
2023-04-19 20:16:35 +00:00
parent 86211aecb8
commit 879ab0fc05
12 changed files with 147 additions and 191 deletions

View File

@@ -35,7 +35,7 @@ struct gameobject *id2go(int id)
int body2id(cpBody *body)
{
return cpBodyGetUserData(body);
return (int)cpBodyGetUserData(body);
}
cpBody *id2body(int id)
@@ -174,7 +174,7 @@ int MakeGameobject()
*id2go(retid) = go;
}
cpBodySetUserData(go.body, (int)retid);
cpBodySetUserData(go.body, (void*)retid);
phys2d_setup_handlers(retid);
return retid;
}