/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2013, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
*
* Known contributors to this file:
* Dave Pare, 1986
+ * Markus Armbruster, 2004-2014
*/
#include <config.h>
*
*/
int
-surv(void)
+c_survey(void)
{
int nsect;
struct nstr_sect nstr;
int n;
int large = val.val_type != NSC_CHAR && val.val_type != NSC_UCHAR;
- nstr_exec_val(&val, player->cnum, sp, NSC_LONG);
+ nstr_eval(&val, player->cnum, sp, NSC_LONG);
+ if (CANT_HAPPEN(val.val_type != NSC_LONG))
+ return ' ';
amt = val.val_as.lng;
if (amt <= 0)
return ' ';