what it says in the log:
BOTCONTROL.CON: In state `turnwaitcode': BOTCONTROL.CON:3528: warning: malformed `gettextureceiling' branch
The actual code:
state turnwaitcode ife botturnwait TURNWAIT // bot just entered a new sector { getangle tempang xcoord ycoord getincangle botang tempang botgoalang // don't wait to turn if it's a small amount ifg botang -512 ifl botang 512 set botturnwait 2 else { set temp currwalldist shiftr temp 10 ifl temp 2 set temp 2 ifg temp TURNWAIT set temp TURNWAIT ifl forwscandist 2048 div temp 2 set botturnwait temp // al botturnwait } ifl botturnwait 2 set botturnwait 2 } ifg botturnwait 0 sub botturnwait 1 ife facewall 0 ends
The problem is on the very last line of the state. It's a malformed line (a fragment which accidentally got left in), but it has nothing to do with gettextureceiling.
I can post other examples when I find them if that would be helpful.