修订版 | d6616fbb9a18e58f494bc126b55e367c6f36f891 (tree) |
---|---|
时间 | 2014-07-16 02:29:22 |
作者 | Face |
Commiter | Face |
Beacons: use inline detection to raise beacon level above ground for OVP experience
@@ -113,6 +113,7 @@ | ||
113 | 113 | char defaults[LINESIZE]=""; |
114 | 114 | int i=0; |
115 | 115 | GetPrivateProfileString(section, "BeaconParams", "1,1,1,1,0", defaults, LINESIZE, ini); |
116 | + bool isInline=IsInlineClient(); | |
116 | 117 | while(true) |
117 | 118 | { |
118 | 119 | sprintf(pf, "BeaconArray%d", i); |
@@ -131,6 +132,8 @@ | ||
131 | 132 | end.x=-end.x; |
132 | 133 | end+=position; |
133 | 134 | color/=255; |
135 | + if (!isInline && start.y<=0) start.y+=size; | |
136 | + if (!isInline && end.y<=0) end.y+=size; | |
134 | 137 | BeaconArray *beacon=new BeaconArray(); |
135 | 138 | beacon->Init(owner, start, end, color, length); |
136 | 139 | beacon->SetSize(size); |