[Add] Finally, fixed two horrible ugly ass bugs.
This commit is contained in:
parent
75f7c81d1b
commit
4f93fba024
@ -242,7 +242,7 @@ void player_newShip(Ship* ship, double px, double py,
|
||||
"Please name your shiny new %s", ship->name);
|
||||
player_newShipMake(ship_name);
|
||||
|
||||
free(ship->name);
|
||||
free(ship_name);
|
||||
}
|
||||
|
||||
// Change the players ship.
|
||||
|
@ -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.pos = 0;
|
||||
wgt->dat.lst.fptr = call;
|
||||
|
||||
wgt->w = (double) w;
|
||||
wgt->h = (double) h - ((h % (gl_defFont.h+2)) + 2);
|
||||
if(x < 0) wgt->x = wdw->w - wgt->w + x;
|
||||
|
Loading…
Reference in New Issue
Block a user