[Change] Fixed handling of outfit license.
This commit is contained in:
parent
8a183c2e22
commit
6483dccab3
@ -383,7 +383,9 @@ static void outfits_update(unsigned int wid, char* str) {
|
|||||||
"%s\n",
|
"%s\n",
|
||||||
outfit->name,
|
outfit->name,
|
||||||
outfit_getType(outfit),
|
outfit_getType(outfit),
|
||||||
player_outfitOwned(outfitname),
|
(outfit_isLicense(outfit)) ?
|
||||||
|
player_hasLicense(outfit->name) :
|
||||||
|
player_outfitOwned(outfitname),
|
||||||
outfit->mass,
|
outfit->mass,
|
||||||
pilot_freeSpace(player),
|
pilot_freeSpace(player),
|
||||||
buf2,
|
buf2,
|
||||||
@ -442,7 +444,7 @@ static int outfit_canBuy(Outfit* outfit, int q, int errmsg) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Needs license. */
|
/* Needs license. */
|
||||||
else if((outfit->license != NULL) && !player_hasLicense(outfit->name)) {
|
else if((outfit->license != NULL) && !player_hasLicense(outfit->license)) {
|
||||||
if(errmsg != 0)
|
if(errmsg != 0)
|
||||||
dialogue_alert("You need the '%s' license to buy this outfit.",
|
dialogue_alert("You need the '%s' license to buy this outfit.",
|
||||||
outfit->license);
|
outfit->license);
|
||||||
|
Loading…
Reference in New Issue
Block a user