git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2534 c06c8d41-db1a-0410-9941-cceddc491573
NMA2HIGBH56WSZB5KQN2TMFC2BVELZOXJWAKKPOO7ZR6V3Z2ZR2QC
OTHTO2GQ6S7DWMZ5BT7CB2OEK54XLL4NMH4G4DNCHEBGGCY6Y2XQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RISMOCQM6BKK4XSIRKYLOBB2UPDYJNDAL6OGIIR5GGNZQAK5YSZAC
const time_t before = time(NULL);
const time_t after = time(NULL);
// Clamp idle time so that play time is more meaningful. if (after - before > IDLE_TIME_CLAMP) { you.real_time += (before - you.start_time) + IDLE_TIME_CLAMP; you.start_time = after; }
// Clamp idle time so that play time is more meaningful.
if (after - before > IDLE_TIME_CLAMP)
{
you.real_time += (before - you.start_time) + IDLE_TIME_CLAMP;
you.start_time = after;
}
#ifndef SCORE_FILE_ENTRIES
#endif
// clamp time between command inputs at 5 minutes when reporting play time.#define IDLE_TIME_CLAMP (5 * 60)
// clamp time between command inputs at 5 minutes when reporting play time.
#define IDLE_TIME_CLAMP (5 * 60)