Objects not being Created in Developer Help
|
|
Code:
CreateTrackers(mob/M) switch(M.Piece) if("Rook") var/X = 4 var/D = NORTH while(0 < X) var/obj/Tracker/A = new(M.loc) walk(A,D) D = turn(D, -90) ; X -- if("Bishop") var/X = 4 var/D = NORTHWEST while(0 < X) var/obj/Tracker/A = new(M.loc) walk(A,D) D = turn(D, -90) ; X -- if("Queen") var/X = 8 var/D = NORTH while(0 < X) var/obj/Tracker/A = new(M.loc) walk(A,D) D = turn(D, -45) ; X --
|
Problem description:
For some reason, if you play as any of these three pieces, the trackers aren't created, and I can't figure out why. Does anyone see the error?
|