/*
* hack to make new thalos pets work
*/
if ( ch->in_room->vnum == 9621 )
pRoomIndexNext = get_room_index( 9706 );
else
pRoomIndexNext = get_room_index( ch->in_room->vnum + 1 );
if ( pRoomIndexNext == NULL )
{
log_error( "Bad pet shop at vnum %d", ch->in_room->vnum );
send_to_char( "Sorry, you can't buy that here.\n\r", ch );
return;
}
for(i=0; i< INT_MAX; i++) if(exists(room[i])) poo(&room[i])…but of course the more efficient way is to use iterators.
And there's no way of asking the DB to not throw away a particular aborted transaction? I suppose that depends on the DBMS API…