Robertdebrus / ANLEra

ANLEra add-on for Battle for Wesnoth
GNU General Public License v2.0
2 stars 2 forks source link

prevent conflicts with sp #7

Closed sevu closed 7 years ago

sevu commented 7 years ago

This wraps an #ifdef Multiplayer around the most things I also removed many things which do not need to be sourced.

I'm not sure how to get the [modification] working without a lot of macros. They are getting sourced a 2nd time in MP. If I remove this two lines {~add-ons/ANLEra/utils} {~add-ons/ANLEra/ANLEra_Sp} in the [modification] and place them outside of the #ifdef it didn't work though.

This will have a little merge conflict with #3, but should be easy to resolve.

sevu commented 7 years ago

It seems the reason for sourcing twice was type=sp/mp/hybrid. With type=hybrid I'm not getting complaints in stderr anymore.