Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions engine/src/group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,17 +881,23 @@ Exec_stat MCGroup::getprop(uint4 parid, Properties which, MCExecPoint &ep, Boole
ep.setpoint(rect.width, rect.height);
break;
case P_CARD_NAMES:
case P_CARD_IDS:
{
ep.clear();
MCExecPoint ep2(ep);
MCCard *startcard = getstack()->getcards();
MCCard *cptr = startcard;
uint2 j = 0;
do
Properties t_prop;
if (which == P_CARD_NAMES)
t_prop = P_SHORT_NAME;
else
t_prop = P_SHORT_ID;
do
{
if (cptr->countme(obj_id, False))
{
cptr->getprop(0, P_SHORT_NAME, ep2, False);
cptr->getprop(0, t_prop, ep2, False);
ep.concatmcstring(ep2.getsvalue(), EC_RETURN, j++ == 0);
}
cptr = cptr->next();
Expand Down