Skip to content

Conversation

@Akhileshgf
Copy link

Added, target.get_target_index command to know their mobj index


static dboolean console_GetTargetID(const char* command, const char* args) {
mobj_t* target = HU_Target(); // current HUD target
int id = dsda_GetMobjIndex(target);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need the dsda_GetMobjIndex function; you can simply write int id = target ? target->index : -1.
What about closing #809 and simplifying this?

@Akhileshgf
Copy link
Author

Akhileshgf commented Nov 22, 2025 via email

@Akhileshgf
Copy link
Author

Akhileshgf commented Nov 22, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants