| 812 | } |
| 813 | |
| 814 | void AddCryptBook(_object_id ot, int v2, Point position) |
| 815 | { |
| 816 | if (ActiveObjectCount >= MAXOBJECTS) |
| 817 | return; |
| 818 | |
| 819 | int oi = AvailableObjects[0]; |
| 820 | AvailableObjects[0] = AvailableObjects[MAXOBJECTS - 1 - ActiveObjectCount]; |
| 821 | ActiveObjects[ActiveObjectCount] = oi; |
| 822 | dObject[position.x][position.y] = oi + 1; |
| 823 | Object &object = Objects[oi]; |
| 824 | SetupObject(object, position, ot); |
| 825 | AddCryptObject(object, v2); |
| 826 | ActiveObjectCount++; |
| 827 | } |
| 828 | |
| 829 | void AddCryptStoryBook(int s) |
| 830 | { |
no test coverage detected