()
| 839 | * Allows rendering code to cache all needed sbar graphics =============== |
| 840 | */ |
| 841 | static void TouchPics() { |
| 842 | int i, j; |
| 843 | |
| 844 | for (i = 0; i < 2; i++) |
| 845 | for (j = 0; j < 11; j++) |
| 846 | ClientGlobals.re.RegisterPic(sb_nums[i][j]); |
| 847 | |
| 848 | if (ClientGlobals.crosshair.value != 0.0f) { |
| 849 | if (ClientGlobals.crosshair.value > 3.0f || ClientGlobals.crosshair.value < 0.0f) |
| 850 | ClientGlobals.crosshair.value = 3.0f; |
| 851 | |
| 852 | crosshair_pic = "ch" + (int) ClientGlobals.crosshair.value; |
| 853 | Dimension dim = new Dimension(); |
| 854 | ClientGlobals.re.DrawGetPicSize(dim, crosshair_pic); |
| 855 | crosshair_width = dim.width; |
| 856 | crosshair_height = dim.height; |
| 857 | if (crosshair_width == 0) |
| 858 | crosshair_pic = ""; |
| 859 | } |
| 860 | } |
| 861 | |
| 862 | private static LayoutParser layoutParser = new LayoutParser(); |
| 863 | /* |
no test coverage detected