Mercurial > mm7
comparison UI/UIShops.cpp @ 2182:e1e4a8a20b5f
_46А6АС_GetActorsInViewport
author | Ritor1 |
---|---|
date | Thu, 23 Jan 2014 17:31:12 +0600 |
parents | a869b0376b48 |
children | e9625ad08541 |
comparison
equal
deleted
inserted
replaced
2181:17b3e40daedc | 2182:e1e4a8a20b5f |
---|---|
1824 return; | 1824 return; |
1825 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_Goodbye); | 1825 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_Goodbye); |
1826 return; | 1826 return; |
1827 } | 1827 } |
1828 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, (HouseSoundID)(dword_F8B1E4 + 3)); | 1828 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, (HouseSoundID)(dword_F8B1E4 + 3)); |
1829 if ( !dword_F8B1E4 && !qword_A750D8 ) | 1829 if ( !dword_F8B1E4 && !_A750D8_player_speech_timer ) |
1830 { | 1830 { |
1831 v5 = 0; | 1831 v5 = 0; |
1832 for ( uint i = 1; i <= 4; ++i ) | 1832 for ( uint i = 1; i <= 4; ++i ) |
1833 { | 1833 { |
1834 if ( pPlayers[i]->CanAct() ) | 1834 if ( pPlayers[i]->CanAct() ) |
1835 v7[v5++] = i; | 1835 v7[v5++] = i; |
1836 } | 1836 } |
1837 if ( v5 ) | 1837 if ( v5 ) |
1838 { | 1838 { |
1839 qword_A750D8 = 256i64; | 1839 _A750D8_player_speech_timer = 256i64; |
1840 PlayerSpeechID = SPEECH_80; | 1840 PlayerSpeechID = SPEECH_80; |
1841 uSpeakingCharacter = v7[rand() % v5]; | 1841 uSpeakingCharacter = v7[rand() % v5]; |
1842 return; | 1842 return; |
1843 } | 1843 } |
1844 } | 1844 } |
1845 } | 1845 } |
1846 else | 1846 else |
1847 { | 1847 { |
1848 if ( !qword_A750D8 ) | 1848 if ( !_A750D8_player_speech_timer ) |
1849 { | 1849 { |
1850 v2 = 0; | 1850 v2 = 0; |
1851 for ( uint i = 1; i <= 4; ++i ) | 1851 for ( uint i = 1; i <= 4; ++i ) |
1852 { | 1852 { |
1853 if ( pPlayers[i]->CanAct() ) | 1853 if ( pPlayers[i]->CanAct() ) |
1854 v7[v2++] = i; | 1854 v7[v2++] = i; |
1855 } | 1855 } |
1856 if ( v2 ) | 1856 if ( v2 ) |
1857 { | 1857 { |
1858 qword_A750D8 = 256i64; | 1858 _A750D8_player_speech_timer = 256i64; |
1859 PlayerSpeechID = SPEECH_80; | 1859 PlayerSpeechID = SPEECH_80; |
1860 uSpeakingCharacter = v7[rand() % v2]; | 1860 uSpeakingCharacter = v7[rand() % v2]; |
1861 return; | 1861 return; |
1862 } | 1862 } |
1863 } | 1863 } |