[Fix] Thanks @KonoM, Buh want to update out of that if statment. :)

This commit is contained in:
Allanis 2013-02-05 18:06:11 +00:00
parent 33f61736c4
commit 838e2f184c

View File

@ -144,7 +144,6 @@ void pilot_init(Pilot* pilot, Ship* ship, char* name, const double dir, const Ve
if(flags & PILOT_PLAYER) { if(flags & PILOT_PLAYER) {
pilot->think = player_think; // Players don't need to thing! :P pilot->think = player_think; // Players don't need to thing! :P
pilot->update = pilot_update;
pilot->render = NULL; pilot->render = NULL;
pilot->properties |= PILOT_PLAYER; pilot->properties |= PILOT_PLAYER;
player = pilot; player = pilot;
@ -152,6 +151,7 @@ void pilot_init(Pilot* pilot, Ship* ship, char* name, const double dir, const Ve
pilot->think = ai_think; pilot->think = ai_think;
pilot->update = pilot_update; pilot->update = pilot_update;
} }
pilot->update = pilot_update;
} }
// Create a new pilot - Params are same as pilot_init. Return pilot's id. // Create a new pilot - Params are same as pilot_init. Return pilot's id.