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

Comparing deliantra/server/common/button.C (file contents):
Revision 1.61 by root, Fri Nov 6 13:03:34 2009 UTC vs.
Revision 1.63 by root, Tue Nov 10 20:57:56 2009 UTC

346 * 346 *
347 * 0.93.4: Linked objects (ie, objects that are connected) can not be 347 * 0.93.4: Linked objects (ie, objects that are connected) can not be
348 * sacrificed. This fixes a bug of trying to put multiple altars/related 348 * sacrificed. This fixes a bug of trying to put multiple altars/related
349 * objects on the same space that take the same sacrifice. 349 * objects on the same space that take the same sacrifice.
350 */ 350 */
351
352int 351int
353check_altar_sacrifice (object *altar, object *sacrifice, object *originator) 352check_altar_sacrifice (object *altar, object *sacrifice, object *originator)
354{ 353{
355 if (sacrifice->flag [FLAG_UNPAID]) 354 if (sacrifice->flag [FLAG_UNPAID])
356 return 0; 355 return 0;
460int 459int
461check_trigger (object *op, object *cause, object *originator) 460check_trigger (object *op, object *cause, object *originator)
462{ 461{
463 object *tmp; 462 object *tmp;
464 int push = 0, tot = 0; 463 int push = 0, tot = 0;
465 int in_movement = op->stats.wc || op->speed; 464 int in_movement = op->stats.wc || op->has_active_speed ();
466 465
467 switch (op->type) 466 switch (op->type)
468 { 467 {
469 case TRIGGER_BUTTON: 468 case TRIGGER_BUTTON:
470 if (op->weight > 0) 469 if (op->weight > 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines