~ares-developers/ares/gd03

« back to all changes in this revision

Viewing changes to src/Ext/Side/Hooks.cpp

  • Committer: Zimmermann Gyula
  • Date: 2012-09-22 13:23:15 UTC
  • mfrom: (825.1.41)
  • Revision ID: git-v1:28613a17bb384e20bb2b95b5fbb0d9dfb903eaab
Merge remote-tracking branch 'origin/v02' into gd03

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
                : No
377
377
        ;
378
378
}
 
379
 
 
380
DEFINE_HOOK(6DE0D3, TActionClass_Execute_HardcodeMessageColors, 6)
 
381
{
 
382
        int idxSide = ScenarioClass::Instance->PlayerSideIndex;
 
383
        int idxColor = 25;
 
384
 
 
385
        if(!idxSide) {
 
386
                // allied
 
387
                idxColor = 21;
 
388
        } else if(idxSide == 1) {
 
389
                // soviet
 
390
                idxColor = 11;
 
391
        }
 
392
        
 
393
        R->EAX(idxColor);
 
394
        return 0x6DE0DE;
 
395
}