Server - Added bac to mark zero priced slots as erroring
authorJohn Hodge <[email protected]>
Wed, 19 Oct 2011 09:30:36 +0000 (17:30 +0800)
committerJohn Hodge <[email protected]>
Wed, 19 Oct 2011 09:30:36 +0000 (17:30 +0800)
src/server/server.c

index 66d1062..b7ca068 100644 (file)
@@ -713,6 +713,8 @@ void Server_int_SendItem(tClient *Client, tItem *Item)
                }
        }
        
+       if( Item->Price == 0 )
+               status = "error";
        // KNOWN HACK: Naming a slot 'dead' disables it
        if( strcmp(Item->Name, "dead") == 0 )
                status = "sold";        // Another status?

UCC git Repository :: git.ucc.asn.au