Jump to content

[C++] input_main.cpp modifications and review


Recommended Posts

  • Active Member

This is my input_main.cpp:

https://pastebin.com/wyRa3gXB

As you may notice I have added this if statement a lot:

if (ch->m_pkTimedEvent)
{
	ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("취소 되었습니다."));
	event_cancel(&ch->m_pkTimedEvent);
}

So far it works good but since I'm not too familliar with the project's source I'm posting it here to get some feedback and reviews if possible. The idea is to cancel logout every time the character does something for bugs and marketing reasons.

Cancels I haven't manage to do yet:

  • On hit (space press)
  • On button click from right click menu
  • On NPC click
  • I haven't manage to send this to all Group members if group is deleted, as well as the second member of the group if the group has only 2 members
  • Think about anything I left out of the list

I appreciate any feedback and review.

Best regards

  • Good 1
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.