PDA

View Full Version : Flag carrier disconnect: server crash (fixed!)


A1win
12-14-2007, 01:15 PM
Every time the flag carrier disconnects in my map ff_hold, the server crashes with no errors. I haven't looked much into the lua yet but I'll post this already, in case I don't find the problem.

The baseflag:ondrop and baseflag:onloseitem functions seem to be pretty identical to those functions in other maps, so I doubt the problem is there.

edit: Fixed!

flag:Drop needs to be in baseflag:ownerdie. If it's in player_killed, the server will crash. This is how it's done in the official maps, I just had changed it for some feature that I didn't use anyway.