Skip to content
Snippets Groups Projects

Remove MT_NULL hacks

Merged James R. requested to merge mt-null-spawning into next

Fixes #721 (closed)

Since hooklib refactor, mobjtype of mobj passed to mobj hook is compared with NULL as part of a general check to determine if the hook being called is actually a mobj hook. MT_NULL mobjs break this of course and end up calling a non mobj hook instead.

I don't think MT_NULL should ever be spawned so I removed the instances of that in the codebase. I added MT_RAY as a general purpose mobj to replace P_TryMove hacks and created P_CheckMove to nicely package the hack. MT_NULL can no longer be spawned, may God rest its soul...

a

Edited by James R.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading