Mercurial > mm7
comparison mm7_1.cpp @ 1109:23a9ea8f380f
buff timers fixed
author | zipi |
---|---|
date | Mon, 27 May 2013 21:35:25 +0100 |
parents | 81a51a0443e2 |
children | e7871ca07661 |
comparison
equal
deleted
inserted
replaced
1108:a1fd8045ffb1 | 1109:23a9ea8f380f |
---|---|
383 if ( (unsigned int)v8 / 0x18 ) | 383 if ( (unsigned int)v8 / 0x18 ) |
384 { | 384 { |
385 v10 = pGlobalTXT_LocalizationStrings[57]; // Days | 385 v10 = pGlobalTXT_LocalizationStrings[57]; // Days |
386 if ( v19 <= 1 ) | 386 if ( v19 <= 1 ) |
387 v10 = pGlobalTXT_LocalizationStrings[56]; // Day | 387 v10 = pGlobalTXT_LocalizationStrings[56]; // Day |
388 sprintfex(pTmpBuf2, "%d %s ", v19, v10); | 388 sprintfex(pTmpBuf2, "%d %s ", (int)v19, v10); |
389 strcat(pTmpBuf, pTmpBuf2); | 389 strcat(pTmpBuf, pTmpBuf2); |
390 } | 390 } |
391 if ( v9 ) | 391 if ( v9 ) |
392 { | 392 { |
393 if ( v9 <= 1 ) | 393 if ( v9 <= 1 ) |
394 v11 = pGlobalTXT_LocalizationStrings[109];// Hour | 394 v11 = pGlobalTXT_LocalizationStrings[109];// Hour |
395 else | 395 else |
396 v11 = pGlobalTXT_LocalizationStrings[110];// Hours | 396 v11 = pGlobalTXT_LocalizationStrings[110];// Hours |
397 sprintfex(pTmpBuf2, "%d %s ", v9, v11); | 397 sprintfex(pTmpBuf2, "%d %s ", (int)v9, v11); |
398 strcat(pTmpBuf, pTmpBuf2); | 398 strcat(pTmpBuf, pTmpBuf2); |
399 } | 399 } |
400 if ( v17 && !v19 ) | 400 if ( v17 && !v19 ) |
401 { | 401 { |
402 if ( v17 <= 1 ) | 402 if ( v17 <= 1 ) |
403 v12 = pGlobalTXT_LocalizationStrings[437];// Minute | 403 v12 = pGlobalTXT_LocalizationStrings[437];// Minute |
404 else | 404 else |
405 v12 = pGlobalTXT_LocalizationStrings[436];// Minutes | 405 v12 = pGlobalTXT_LocalizationStrings[436];// Minutes |
406 sprintfex(pTmpBuf2, "%d %s ", v17, v12); | 406 sprintfex(pTmpBuf2, "%d %s ", (int)v17, v12); |
407 strcat(pTmpBuf, pTmpBuf2); | 407 strcat(pTmpBuf, pTmpBuf2); |
408 } | 408 } |
409 if ( v18 && !v9 ) | 409 if ( v18 && !v9 ) |
410 { | 410 { |
411 if ( v18 <= 1 ) | 411 if ( v18 <= 1 ) |
412 v13 = pGlobalTXT_LocalizationStrings[439];// Second | 412 v13 = pGlobalTXT_LocalizationStrings[439];// Second |
413 else | 413 else |
414 v13 = pGlobalTXT_LocalizationStrings[438];// Seconds | 414 v13 = pGlobalTXT_LocalizationStrings[438];// Seconds |
415 sprintfex(pTmpBuf2, "%d %s ", v18, v13); | 415 sprintfex(pTmpBuf2, "%d %s ", (int)v18, v13); |
416 strcat(pTmpBuf, pTmpBuf2); | 416 strcat(pTmpBuf, pTmpBuf2); |
417 } | 417 } |
418 a1->DrawText(a2, 32, uY, 0, pTmpBuf, 0, 0, 0); | 418 a1->DrawText(a2, 32, uY, 0, pTmpBuf, 0, 0, 0); |
419 } | 419 } |
420 | 420 |