[Add] Finally, fixed two horrible ugly ass bugs.

This commit is contained in:
Allanis 2013-04-03 19:08:42 +01:00
parent 75f7c81d1b
commit 4f93fba024
3 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,7 @@
</ship> </ship>
<ship name="Lancer"> <ship name="Lancer">
<GFX>lancer</GFX> <GFX>lancer</GFX>
<GUI>minimal</GUI> <GUI>minimal</GUI>
<sound>engine</sound> <sound>engine</sound>
<class>2</class> <class>2</class>
<price>700000</price> <price>700000</price>

View File

@ -242,7 +242,7 @@ void player_newShip(Ship* ship, double px, double py,
"Please name your shiny new %s", ship->name); "Please name your shiny new %s", ship->name);
player_newShipMake(ship_name); player_newShipMake(ship_name);
free(ship->name); free(ship_name);
} }
// Change the players ship. // Change the players ship.

View File

@ -247,6 +247,7 @@ void window_addList(const unsigned int wid, const int x, const int y,
wgt->dat.lst.selected = defitem; // -1 would be none. wgt->dat.lst.selected = defitem; // -1 would be none.
wgt->dat.lst.pos = 0; wgt->dat.lst.pos = 0;
wgt->dat.lst.fptr = call; wgt->dat.lst.fptr = call;
wgt->w = (double) w; wgt->w = (double) w;
wgt->h = (double) h - ((h % (gl_defFont.h+2)) + 2); wgt->h = (double) h - ((h % (gl_defFont.h+2)) + 2);
if(x < 0) wgt->x = wdw->w - wgt->w + x; if(x < 0) wgt->x = wdw->w - wgt->w + x;