I've made a tiny patch to allow conversion of normal tracks to electrified with trains present.
It works for me, but perhaps I'm missing something... it's just too simple

Moderator: OpenTTD Developers
I wonder why people don't read what they write. Costas claims that it's simple, yet he don't understand it. It makes you wonder about his coding skillsCostas wrote:it looks very small and i would say simple but cant understand much out of it!
cool flame war!!!Bjarni wrote:I wonder why people don't read what they write. Costas claims that it's simple, yet he don't understand it. It makes you wonder about his coding skillsCostas wrote:it looks very small and i would say simple but cant understand much out of it!![]()
Code: Select all
- if (!EnsureNoVehicle(tile) && (!IsCompatibleRail(GetRailType(tile), totype) || IsPlainRailTile(tile))) return CMD_ERROR;
+ if (!EnsureNoVehicle(tile) && !IsCompatibleRail(GetRailType(tile), totype)) return CMD_ERROR;
YesIthinkthatiswonderfullogic,don'tyou?BoominGranny wrote:if you can code it in 3 lines instead of 10 lines then it is usually more efficient and therefore better
That's *MY* code, and it lives (or lived) in NFORenum.dev|ant wrote:/sigh... I've been away for a month, only to come back to this.DaleStan wrote:...
Users browsing this forum: No registered users and 3 guests