mirror of
https://github.com/dimoniche/Moyka.git
synced 2026-01-29 17:33:33 +03:00
2,3
This commit is contained in:
parent
aec63a4b80
commit
03f0ce46f6
@ -399,7 +399,7 @@ void PrintEventJournalRecordEng(char* str, TEventRecord *record)
|
||||
GetEventStrEng(&str[strlen(str)], record->event);
|
||||
|
||||
// íàïå÷àòàåì äîïîëíèòåëüíûå ïîëÿ
|
||||
if ((record->event >= JOURNAL_EVENT_MONEY_NOTE_POST1) && (record->event <= JOURNAL_EVENT_MONEY_COIN_POST6))
|
||||
if ((record->event >= JOURNAL_EVENT_MONEY_NOTE_POST1) && (record->event <= JOURNAL_EVENT_MONEY_COIN_VACUUM2))
|
||||
{
|
||||
sprintf(&str[strlen(str)], "%d rub.", record->data);
|
||||
}
|
||||
|
||||
@ -1563,13 +1563,17 @@ void PrintEventJournalRecord(TEventRecord *record)
|
||||
if (record->event)
|
||||
{ // åñòü ñîáûòèå
|
||||
GetEventStr(str_EventNumber, record->event);
|
||||
if ((record->event >= JOURNAL_EVENT_MONEY_NOTE_POST1) && (record->event <= JOURNAL_EVENT_MONEY_COIN_POST6))
|
||||
if ((record->event >= JOURNAL_EVENT_MONEY_NOTE_POST1) && (record->event <= JOURNAL_EVENT_MONEY_NOTE_POST6))
|
||||
{
|
||||
sprintf(str_EventData, "%d ðóá.ïîñò %d", record->data, record->event%6);
|
||||
sprintf(str_EventData, "%d ðóá.", record->data);
|
||||
}
|
||||
else if ((record->event >= JOURNAL_EVENT_MONEY_COIN_POST1) && (record->event <= JOURNAL_EVENT_MONEY_COIN_VACUUM2))
|
||||
{
|
||||
sprintf(str_EventData, "%d ðóá.", record->data);
|
||||
}
|
||||
else if ((record->event >= JOURNAL_EVENT_MONEY_BANK_POST1) && (record->event <= JOURNAL_EVENT_MONEY_BANK_POST6))
|
||||
{
|
||||
sprintf(str_EventData, "%d ðóá.ïîñò %d", record->data, record->event%6);
|
||||
sprintf(str_EventData, "%d ðóá.", record->data);
|
||||
}
|
||||
else if (record->event == JOURNAL_EVENT_START_SESSION)
|
||||
{
|
||||
|
||||
@ -270,7 +270,7 @@ void CoinTask(void *p_arg)
|
||||
{
|
||||
if (last_cash_count[i] == GetCashCount(i))
|
||||
{
|
||||
if (labs(OSTimeGet() - last_cash_time[i]) > 500)
|
||||
if (labs(OSTimeGet() - last_cash_time[i]) > 1000)
|
||||
{
|
||||
PostUserEvent(EVENT_CASH_INSERTED_POST1 + i);
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user