Altering a Built in Functiion

BlitzMax Forums/BlitzMax Programming/Altering a Built in Functiion

Use function pointers. If the parameters of DrawText are:

DrawText Text$,X,Y

Then you need to define a function with the same kind of parameters:

Function DrawNothing(TextToDraw:String,XPos:Int,YPosInt)
End Function

And then replace the DrawText function with this one:

DrawText=DrawNothing

I think that should work.