read() and reservoir() handlers.
[open-adventure.git] / actions2.c
index 5b0bd86428bc8754e6e24de8b04aa6b32283ab14..72bd0b01e45abaa48d4ef1b0d6f9c4bf1c9d2622 100644 (file)
@@ -7,6 +7,15 @@
 
 int carry(long obj)
 {
+    if (obj == INTRANSITIVE) {
+       /*  Carry, no object given yet.  OK if only one object present. */
+       if(game.atloc[game.loc] == 0 ||
+          game.link[game.atloc[game.loc]] != 0 ||
+          ATDWRF(game.loc) > 0)
+           return(8000);
+       obj=game.atloc[game.loc];
+    }
+
     if (TOTING(obj)) return(2011);
     SPK=25;
     if (obj == PLANT && game.prop[PLANT] <= 0)SPK=115;