Ticket #51218: patch-noinline.diff
File patch-noinline.diff, 1.5 KB (added by mojca (Mojca Miklavec), 9 years ago) |
---|
-
overviewer_core/src/primitives/lighting.c
old new calculate_light_color_fancy_night(void *data, 95 95 * may (and probably should) pass NULL. 96 96 */ 97 97 98 inlineunsigned char98 unsigned char 99 99 estimate_blocklevel(RenderPrimitiveLighting *self, RenderState *state, 100 100 int x, int y, int z, int *authoratative) { 101 101 … … estimate_blocklevel(RenderPrimitiveLighting *self, RenderState *state, 145 145 return blocklevel; 146 146 } 147 147 148 inlinevoid148 void 149 149 get_lighting_color(RenderPrimitiveLighting *self, RenderState *state, 150 150 int x, int y, int z, 151 151 unsigned char *r, unsigned char *g, unsigned char *b) { … … get_lighting_color(RenderPrimitiveLighting *self, RenderState *state, 196 196 } 197 197 198 198 /* does per-face occlusion checking for do_shading_with_mask */ 199 in line int199 int 200 200 lighting_is_face_occluded(RenderState *state, int skip_sides, int x, int y, int z) { 201 201 /* first, check for occlusion if the block is in the local chunk */ 202 202 if (x >= 0 && x < 16 && y >= 0 && y < 16 && z >= 0 && z < 16) { … … lighting_is_face_occluded(RenderState *state, int skip_sides, int x, int y, int 221 221 222 222 /* shades the drawn block with the given facemask, based on the 223 223 lighting results from (x, y, z) */ 224 static inlinevoid224 static void 225 225 do_shading_with_mask(RenderPrimitiveLighting *self, RenderState *state, 226 226 int x, int y, int z, PyObject *mask) { 227 227 unsigned char r, g, b;