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

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.137 by root, Thu Nov 8 19:43:25 2007 UTC vs.
Revision 1.138 by elmex, Thu Nov 22 21:37:33 2007 UTC

2607 if (op->env && (pl->move_type & MOVE_FLYING)) 2607 if (op->env && (pl->move_type & MOVE_FLYING))
2608 { 2608 {
2609 /* player is flying and applying object not in inventory */ 2609 /* player is flying and applying object not in inventory */
2610 if (!QUERY_FLAG (pl, FLAG_WIZ) && !(op->move_type & MOVE_FLYING)) 2610 if (!QUERY_FLAG (pl, FLAG_WIZ) && !(op->move_type & MOVE_FLYING))
2611 { 2611 {
2612 op->failmsg ("But you are floating high above the ground! H<You have to stop levitating first, if you can.>"); 2612 pl->failmsg ("But you are floating high above the ground! H<You have to stop levitating first, if you can.>");
2613 return 0; 2613 return 0;
2614 } 2614 }
2615 } 2615 }
2616 2616
2617 pl->contr->last_used = op; 2617 pl->contr->last_used = op;
2618 2618
2619 tmp = manual_apply (pl, op, aflag); 2619 tmp = manual_apply (pl, op, aflag);
2620 if (!quiet) 2620 if (!quiet)
2621 { 2621 {
2622 if (tmp == 0) 2622 if (tmp == 0)
2623 op->statusmsg (format ("I don't know how to apply the %s.", query_name (op))); 2623 pl->statusmsg (format ("I don't know how to apply the %s.", query_name (op)));
2624 else if (tmp == 2) 2624 else if (tmp == 2)
2625 op->failmsg ("You must get it first!\n"); 2625 pl->failmsg ("You must get it first!\n");
2626 } 2626 }
2627 2627
2628 return tmp; 2628 return tmp;
2629} 2629}
2630 2630

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines