mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-28 02:32:48 +00:00
Use P_FindSpecialLineFromTag for MT_WAYPOINT, now that it works where we need it
This matches how MT_SPINMACEPOINT was changed
This commit is contained in:
parent
5cd1296505
commit
203aa0602e
1 changed files with 3 additions and 8 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
|
@ -12072,16 +12072,11 @@ ML_NOCLIMB : Direction not controllable
|
|||
break;
|
||||
case MT_WAYPOINT:
|
||||
{
|
||||
size_t line;
|
||||
// Just like MT_SPINMACEPOINT, this now works here too!
|
||||
INT32 line = P_FindSpecialLineFromTag(9, mthing->angle, -1);
|
||||
mobj->radius = 384*FRACUNIT;
|
||||
// Same reason as for MT_SPINMACEPOINT we can't use the function to find the linedef
|
||||
for (line = 0; line < numlines; line++)
|
||||
{
|
||||
if (lines[line].special == 2000 && lines[line].tag == mthing->angle)
|
||||
break;
|
||||
}
|
||||
// Set the radius, mobj z, and mthing z to match what the parameters want
|
||||
if (line < numlines)
|
||||
if (line != -1)
|
||||
{
|
||||
fixed_t lineradius = sides[lines[line].sidenum[0]].textureoffset;
|
||||
fixed_t linez = sides[lines[line].sidenum[0]].rowoffset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue