- more direct native entry points.
- disallow bool as a return value for direct native calls because it only sets the lowest 8 bits of the return register. - changed return type for several functions from bool to int where the return type was the only thing blocking use as direct native call.
This commit is contained in:
parent
2e7e6cba9d
commit
494a113920
19 changed files with 284 additions and 262 deletions
|
|
@ -4754,7 +4754,7 @@ static ETraceStatus CheckLineTrace(FTraceResults &res, void *userdata)
|
|||
return TRACE_Stop;
|
||||
}
|
||||
|
||||
bool P_LineTrace(AActor *t1, DAngle angle, double distance,
|
||||
int P_LineTrace(AActor *t1, DAngle angle, double distance,
|
||||
DAngle pitch, int flags, double sz, double offsetforward,
|
||||
double offsetside, FLineTraceData *outdata)
|
||||
{
|
||||
|
|
@ -5612,7 +5612,7 @@ void P_UseLines(player_t *player)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
bool P_UsePuzzleItem(AActor *PuzzleItemUser, int PuzzleItemType)
|
||||
int P_UsePuzzleItem(AActor *PuzzleItemUser, int PuzzleItemType)
|
||||
{
|
||||
DVector2 start;
|
||||
DVector2 end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue