ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/player.C
(Generate patch)

Comparing deliantra/server/server/player.C (file contents):
Revision 1.169 by root, Sat Sep 1 08:03:45 2007 UTC vs.
Revision 1.170 by root, Sun Sep 2 05:18:52 2007 UTC

1964 1964
1965 if (door->type == DOOR) 1965 if (door->type == DOOR)
1966 hit_player (door, 9998, op, AT_PHYSICAL, 1); /* Break through the door */ 1966 hit_player (door, 9998, op, AT_PHYSICAL, 1); /* Break through the door */
1967 else if (door->type == LOCKED_DOOR) 1967 else if (door->type == LOCKED_DOOR)
1968 { 1968 {
1969 new_draw_info_format (NDI_UNIQUE, NDI_BROWN, op, "You open the door with the %s", query_short_name (key)); 1969 op->statusmsg (format ("You open the door with the %s", query_short_name (key)), NDI_BROWN);
1970 remove_door2 (door); /* remove door without violence ;-) */ 1970 remove_door2 (door); /* remove door without violence ;-) */
1971 } 1971 }
1972 1972
1973 /* Do this after we print the message */ 1973 /* Do this after we print the message */
1974 decrease_ob (key); /* Use up one of the keys */ 1974 decrease_ob (key); /* Use up one of the keys */
1979 return 1; /* Nothing more to do below */ 1979 return 1; /* Nothing more to do below */
1980 } 1980 }
1981 else if (door->type == LOCKED_DOOR) 1981 else if (door->type == LOCKED_DOOR)
1982 { 1982 {
1983 /* Might as well return now - no other way to open this */ 1983 /* Might as well return now - no other way to open this */
1984 new_draw_info (NDI_UNIQUE | NDI_NAVY, 0, op, door->msg); 1984 op->failmsg (door->msg);
1985 return 1; 1985 return 1;
1986 } 1986 }
1987 1987
1988 return 0; 1988 return 0;
1989} 1989}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines