| 2347 | } |
| 2348 | |
| 2349 | void S_BBuyEnter() |
| 2350 | { |
| 2351 | BOOL done; |
| 2352 | int i; |
| 2353 | |
| 2354 | if (stextsel == 10) { |
| 2355 | stextshold = STORE_BBOY; |
| 2356 | stextvhold = stextsval; |
| 2357 | stextlhold = 10; |
| 2358 | if (plr[myplr]._pGold < boyitem._iIvalue + (boyitem._iIvalue >> 1)) { |
| 2359 | StartStore(STORE_NOMONEY); |
| 2360 | } else { |
| 2361 | plr[myplr].HoldItem = boyitem; |
| 2362 | plr[myplr].HoldItem._iIvalue += plr[myplr].HoldItem._iIvalue >> 1; |
| 2363 | SetCursor_(plr[myplr].HoldItem._iCurs + CURSOR_FIRSTITEM); |
| 2364 | done = FALSE; |
| 2365 | for (i = 0; i < 40 && !done; i++) { |
| 2366 | done = AutoPlace(myplr, i, cursW / 28, cursH / 28, FALSE); |
| 2367 | } |
| 2368 | if (done) |
| 2369 | StartStore(STORE_CONFIRM); |
| 2370 | else |
| 2371 | StartStore(STORE_NOROOM); |
| 2372 | SetCursor_(CURSOR_HAND); |
| 2373 | } |
| 2374 | } else { |
| 2375 | stextflag = STORE_NONE; |
| 2376 | } |
| 2377 | } |
| 2378 | |
| 2379 | void StoryIdItem() |
| 2380 | { |
no test coverage detected