Mercurial > mm7
comparison LayingItem.cpp @ 237:2799737f8a74
more text parsers refactor
author | Gloval |
---|---|
date | Mon, 18 Feb 2013 00:47:36 +0400 |
parents | 07eb7d649bd5 |
children | 58b71c1af7d8 |
comparison
equal
deleted
inserted
replaced
234:47e06334c564 | 237:2799737f8a74 |
---|---|
62 v10 = ((unsigned int)(11 * v5) >> 5) + (v6 >> 2) + v4; | 62 v10 = ((unsigned int)(11 * v5) >> 5) + (v6 >> 2) + v4; |
63 if ( (signed int)v10 <= 768 ) | 63 if ( (signed int)v10 <= 768 ) |
64 { | 64 { |
65 v17 = 0; | 65 v17 = 0; |
66 v11 = 5; | 66 v11 = 5; |
67 if ( pMapInfo->field_2E ) | 67 if ( pMapInfo->Trap_D20 ) |
68 { | 68 { |
69 do | 69 do |
70 { | 70 { |
71 ++v17; | 71 ++v17; |
72 v11 += rand() % 20 + 1; | 72 v11 += rand() % 20 + 1; |
73 } | 73 } |
74 while ( v17 < pMapInfo->field_2E ); | 74 while ( v17 < pMapInfo->Trap_D20 ); |
75 } | 75 } |
76 switch ( v1->uItemType ) | 76 switch ( v1->uItemType ) |
77 { | 77 { |
78 case 0x32Bu: | 78 case 0x32Bu: |
79 v18 = 0; | 79 v18 = 0; |