[Fix] Removed some unused variables.
This commit is contained in:
parent
3b64a6984f
commit
e57ac297d2
@ -20,7 +20,7 @@ function land()
|
|||||||
-- Need to start braking.
|
-- Need to start braking.
|
||||||
elseif dist < bdist then
|
elseif dist < bdist then
|
||||||
ai.poptask()
|
ai.poptask()
|
||||||
ai.pushtask(0, "landstop", target)
|
ai.pushtask(0, "landstop")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1381,7 +1381,7 @@ unsigned int pilot_create(Ship* ship, char* name, int faction,
|
|||||||
char* ai, const double dir, const Vec2* pos,
|
char* ai, const double dir, const Vec2* pos,
|
||||||
const Vec2* vel, const int flags) {
|
const Vec2* vel, const int flags) {
|
||||||
|
|
||||||
Pilot** tp, *dyn;
|
Pilot* dyn;
|
||||||
|
|
||||||
dyn = MALLOC_L(Pilot);
|
dyn = MALLOC_L(Pilot);
|
||||||
if(dyn == NULL) {
|
if(dyn == NULL) {
|
||||||
@ -1393,7 +1393,6 @@ unsigned int pilot_create(Ship* ship, char* name, int faction,
|
|||||||
/* See if memory needs to grow. */
|
/* See if memory needs to grow. */
|
||||||
if(pilot_nstack+1 > pilot_mstack) { /* Needs to grow. */
|
if(pilot_nstack+1 > pilot_mstack) { /* Needs to grow. */
|
||||||
pilot_mstack += PILOT_CHUNK;
|
pilot_mstack += PILOT_CHUNK;
|
||||||
tp = pilot_stack;
|
|
||||||
pilot_stack = realloc(pilot_stack, pilot_mstack*sizeof(Pilot*));
|
pilot_stack = realloc(pilot_stack, pilot_mstack*sizeof(Pilot*));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user