/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
check_trade();
p = getstarg(player->argp[1], "Ship, plane, land unit or nuke? ", buf);
- if (p == 0)
+ if (!p)
return RET_SYN;
if ((type = ef_byname_from(p, ef_saleable)) < 0) {
pr("You can sell only ships, planes, land units or nukes\n");
trade.trd_type = type;
sprintf(prompt, "%s #%d; Price? ",
trade_nameof(&trade, &item), ni.cur);
- if ((p = getstarg(player->argp[3], prompt, buf)) == 0)
+ if (!(p = getstarg(player->argp[3], prompt, buf)))
return RET_FAIL;
if (!trade_check_item_ok(&item))
return RET_FAIL;