mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-02 07:21:44 +01:00
Applied K&R style to previous commit.
This commit is contained in:
@@ -284,22 +284,18 @@ static void get_from_room(struct char_data *ch, char *arg, int howmany)
|
|||||||
{
|
{
|
||||||
struct obj_data *obj, *next_obj;
|
struct obj_data *obj, *next_obj;
|
||||||
int dotmode, found = 0;
|
int dotmode, found = 0;
|
||||||
|
|
||||||
dotmode = find_all_dots(arg);
|
dotmode = find_all_dots(arg);
|
||||||
|
|
||||||
if (dotmode == FIND_INDIV) {
|
if (dotmode == FIND_INDIV) {
|
||||||
if (!(obj = get_obj_in_list_vis(ch, arg, NULL, world[IN_ROOM(ch)].contents)))
|
if (!(obj = get_obj_in_list_vis(ch, arg, NULL, world[IN_ROOM(ch)].contents))) {
|
||||||
{
|
|
||||||
/* Are they trying to take something in a room extra description? */
|
/* Are they trying to take something in a room extra description? */
|
||||||
if (find_exdesc(arg, world[IN_ROOM(ch)].ex_description) != NULL)
|
if (find_exdesc(arg, world[IN_ROOM(ch)].ex_description) != NULL) {
|
||||||
{
|
|
||||||
send_to_char(ch, "You can't take %s %s.\r\n", AN(arg), arg);
|
send_to_char(ch, "You can't take %s %s.\r\n", AN(arg), arg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
send_to_char(ch, "You don't see %s %s here.\r\n", AN(arg), arg);
|
send_to_char(ch, "You don't see %s %s here.\r\n", AN(arg), arg);
|
||||||
}
|
} else {
|
||||||
|
|
||||||
else {
|
|
||||||
struct obj_data *obj_next;
|
struct obj_data *obj_next;
|
||||||
while(obj && howmany--) {
|
while(obj && howmany--) {
|
||||||
obj_next = obj->next_content;
|
obj_next = obj->next_content;
|
||||||
|
|||||||
Reference in New Issue
Block a user