-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target lines #9
base: master
Are you sure you want to change the base?
Target lines #9
Conversation
Update for getting back target lines functionality that was lost at some point.
Update for getting back target lines functionality that was lost at some point.
Update for getting back target lines functionality that was lost at some point.
damn last lines
damn last lines
@@ -1766,6 +1766,44 @@ private void DrawSpawns(Graphics g) | |||
g.DrawLine(pPetChain, headX - offX, headY - offY, tailX, tailY); | |||
DrawArrowHead(g, pPetChain, headX - offX, headY - offY, rads, 10f, 5f); | |||
} | |||
if (m_drawPetLines && spawn.TargetIndex > 0 && m_game.Spawns.ContainsIndex(spawn.TargetIndex)) | |||
{ | |||
if (spawn != m_game.Player) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the tabs in here to spaces (you should set up your editor to only use 4 spaces instead of tabs).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch I had it set only for lua >.<, sorry.
correct indentation
Updated Entity Struct for December 2015 update
Entity structure update for february 10, 2016
The functionality show pet/target lines at some point lost the target lines functionality, with this one the functionality gets back. Not sure if the way I did was the good one but I tested and works ok.