- trapped air elemental funktionierte nicht, weil das eine
  useonother-funktion haben muss.
This commit is contained in:
Enno Rehling 2004-09-11 22:01:24 +00:00
parent d5be6ec902
commit 32e18c5f9d
1 changed files with 3 additions and 4 deletions

View File

@ -114,14 +114,13 @@ item_type it_hornofdancing = {
#define SPEEDUP 2 #define SPEEDUP 2
static int static int
use_trappedairelemental(struct unit * u, const struct item_type * itype, use_trappedairelemental(struct unit * u, int shipId,
const struct item_type * itype,
int amount, struct order * ord) int amount, struct order * ord)
{ {
curse *c; curse *c;
int shipId;
ship *sh; ship *sh;
shipId = getshipid();
if(shipId <= 0) { if(shipId <= 0) {
cmistake(u, ord, 20, MSG_MOVE); cmistake(u, ord, 20, MSG_MOVE);
return -1; return -1;
@ -156,8 +155,8 @@ item_type it_trappedairelemental = {
&rt_trappedairelemental, /* resourcetype */ &rt_trappedairelemental, /* resourcetype */
0, 1, 0, /* flags, weight, capacity */ 0, 1, 0, /* flags, weight, capacity */
NULL, /* construction */ NULL, /* construction */
&use_trappedairelemental,
NULL, NULL,
&use_trappedairelemental,
NULL NULL
}; };