> Do you really want to reimplement all that is available in C to lua?
No, only what makes sense. Asking a flag if it knows about a warehouse somewhere in its road network makes no sense to me. Option 1) is clearer, but it is also more work.
I would suggest removing get_warehouse from this branch and start a new one with this change.
> Do you really want to reimplement all that is available in C to lua?
No, only what makes sense. Asking a flag if it knows about a warehouse somewhere in its road network makes no sense to me. Option 1) is clearer, but it is also more work.
I would suggest removing get_warehouse from this branch and start a new one with this change.