441 |
if (m == "trigger" || m=="turn") { |
if (m == "trigger" || m=="turn") { |
442 |
rotate_right(); |
rotate_right(); |
443 |
} |
} |
444 |
|
{ |
445 |
|
if (m == "mirror-north") { |
446 |
|
set_attrib("orientation", Value(3)); |
447 |
|
set_orientation(get_orientation()); |
448 |
|
init_model(); |
449 |
|
MaybeRecalcLight(get_pos()); |
450 |
|
} |
451 |
|
{ |
452 |
|
if (m == "mirror-east") { |
453 |
|
set_attrib("orientation", Value(4)); |
454 |
|
set_orientation(get_orientation()); |
455 |
|
init_model(); |
456 |
|
MaybeRecalcLight(get_pos()); |
457 |
|
} |
458 |
|
{ |
459 |
|
if (m == "mirror-south") { |
460 |
|
set_attrib("orientation", Value(1)); |
461 |
|
set_orientation(get_orientation()); |
462 |
|
init_model(); |
463 |
|
MaybeRecalcLight(get_pos()); |
464 |
|
} |
465 |
|
{ |
466 |
|
if (m == "mirror-west") { |
467 |
|
set_attrib("orientation", Value(2)); |
468 |
|
set_orientation(get_orientation()); |
469 |
|
init_model(); |
470 |
|
MaybeRecalcLight(get_pos()); |
471 |
|
} |
472 |
|
} |
473 |
|
} |
474 |
|
} |
475 |
|
} |
476 |
} |
} |
477 |
|
|
|
|
|
478 |
void MirrorStone::actor_hit(const StoneContact &sc) |
void MirrorStone::actor_hit(const StoneContact &sc) |
479 |
{ |
{ |
480 |
if (is_movable()) |
if (is_movable()) |
481 |
MovableStone::actor_hit(sc); |
MovableStone::actor_hit(sc); |
482 |
rotate_right(); |
rotate_right(); |
483 |
} |
} |
484 |
|
|
485 |
void MirrorStone::on_creation() |
void MirrorStone::on_creation() |