Jump to content

Recommended Posts

  • Active+ Member
Posted (edited)

While cleaning up the project, I sometimes come across and remove unused/dead code. This is one of them.

All of the following code is useless and can be deleted because it was added during area drawing for development/debugging purposes but was abandoned after the final stages. Please proceed carefully.

 

This is the hidden content, please

Edited by Kaiser
  • Metin2 Dev 62
  • Think 1
  • Good 12
  • Love 18
Link to comment
https://metin2.dev/topic/34419-remove-area-sort-dead-code-by-ymir/
Share on other sites

Thanks, but you forgot one line in consoleModule.py and one in MapOutdoorRender.cpp

std::stable_sort(m_PatchDrawStructVector.begin(), m_PatchDrawStructVector.end(), FSortPatchDrawStructWithTerrainNum());
self.AddFunction("terrainrender",	Console.SetTerrainRenderSort)

 

  • Good 1
  • Active+ Member
Posted (edited)
19 hours ago, Filachilla said:

Thanks, but you forgot one line in consoleModule.py and one in MapOutdoorRender.cpp

std::stable_sort(m_PatchDrawStructVector.begin(), m_PatchDrawStructVector.end(), FSortPatchDrawStructWithTerrainNum());
self.AddFunction("terrainrender",	Console.SetTerrainRenderSort)

 

I'm sorry I forgot. Thank you.
Also, this line;

std::stable_sort(m_PatchDrawStructVector.begin(), m_PatchDrawStructVector.end(), FSortPatchDrawStructWithTerrainNum());

is inside the void CMapOutdoor::SetPatchDrawVector() function.
You can delete that function COMPLETELY. It's not used at all. I had already deleted it, so I even forgot about the existence of the line you mentioned 😄

Edited by Kaiser
  • Love 1

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

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.