Mercurial > mm7
comparison Mouse.cpp @ 194:650d96af8855
Vis overhaul; sprites can be picked by mouse
author | Nomad |
---|---|
date | Sat, 16 Feb 2013 18:32:37 +0200 |
parents | ee11772d0ad2 |
children | 2a09e1d6fc8f |
comparison
equal
deleted
inserted
replaced
192:1c8add70bcf9 | 194:650d96af8855 |
---|---|
877 | 877 |
878 //----- (0046B14F) -------------------------------------------------------- | 878 //----- (0046B14F) -------------------------------------------------------- |
879 void AsyncMouse::Suspend() | 879 void AsyncMouse::Suspend() |
880 { | 880 { |
881 void *v1; // esi@1 | 881 void *v1; // esi@1 |
882 Vis *v2; // eax@3 | 882 //Vis *v2; // eax@3 |
883 std::string v3; // [sp-18h] [bp-24h]@2 | 883 std::string v3; // [sp-18h] [bp-24h]@2 |
884 const char *v4; // [sp-8h] [bp-14h]@2 | 884 const char *v4; // [sp-8h] [bp-14h]@2 |
885 int v5; // [sp-4h] [bp-10h]@2 | 885 int v5; // [sp-4h] [bp-10h]@2 |
886 std::string *v6; // [sp+4h] [bp-8h]@2 | 886 std::string *v6; // [sp+4h] [bp-8h]@2 |
887 int a3; // [sp+Bh] [bp-1h]@2 | 887 int a3; // [sp+Bh] [bp-1h]@2 |
888 | 888 |
889 v1 = this; | 889 v1 = this; |
890 if ( *((int *)this + 33) ) | 890 if ( *((int *)this + 33) ) |
891 { | 891 { |
892 v2 = pGame->pVisInstance; | 892 //v2 = pGame->pVisInstance; |
893 if ( v2 ) | 893 if (pGame->pVisInstance) |
894 v2->stru1.uNumPointers = 0; | 894 pGame->pVisInstance->default_list.uNumPointers = 0; |
895 | |
895 EnterCriticalSection(&pGame->pThreadWardInstance->cs3); | 896 EnterCriticalSection(&pGame->pThreadWardInstance->cs3); |
896 SuspendThread(*((HANDLE *)v1 + 4)); | 897 SuspendThread(*((HANDLE *)v1 + 4)); |
897 _46B0ED(); | 898 _46B0ED(); |
898 LeaveCriticalSection(&pGame->pThreadWardInstance->cs3); | 899 LeaveCriticalSection(&pGame->pThreadWardInstance->cs3); |
899 } | 900 } |