forked from github/server
eliminate deprecated call
This commit is contained in:
parent
e23a7fc87d
commit
e3572ef14e
2 changed files with 4 additions and 4 deletions
|
@ -87,8 +87,6 @@ extern "C" {
|
||||||
const struct locale *lang);
|
const struct locale *lang);
|
||||||
size_t report_status(const struct unit *u,
|
size_t report_status(const struct unit *u,
|
||||||
const struct locale *lang, char *buf, size_t siz);
|
const struct locale *lang, char *buf, size_t siz);
|
||||||
const char *report_kampfstatus(const struct unit *u,
|
|
||||||
const struct locale *lang); // FIXME: kill this (static variable)
|
|
||||||
|
|
||||||
void register_reports(void);
|
void register_reports(void);
|
||||||
|
|
||||||
|
|
|
@ -59,10 +59,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
* Spionage des Spions */
|
* Spionage des Spions */
|
||||||
void spy_message(int spy, const unit * u, const unit * target)
|
void spy_message(int spy, const unit * u, const unit * target)
|
||||||
{
|
{
|
||||||
const char *str = report_kampfstatus(target, u->faction->locale); // FIXME: use report_status instead
|
char status[32];
|
||||||
|
|
||||||
|
report_status(target, u->faction->locale, status, sizeof(status));
|
||||||
|
|
||||||
ADDMSG(&u->faction->msgs, msg_message("spyreport", "spy target status", u,
|
ADDMSG(&u->faction->msgs, msg_message("spyreport", "spy target status", u,
|
||||||
target, str));
|
target, status));
|
||||||
if (spy > 20) {
|
if (spy > 20) {
|
||||||
sc_mage *mage = get_mage(target);
|
sc_mage *mage = get_mage(target);
|
||||||
/* for mages, spells and magic school */
|
/* for mages, spells and magic school */
|
||||||
|
|
Loading…
Reference in a new issue