landscape.c
changeset 2952 58522ed8f0f1
parent 2951 2de6d3a59743
child 2955 24de69e236d2
equal deleted inserted replaced
2951:2de6d3a59743 2952:58522ed8f0f1
    82 
    82 
    83 uint GetPartialZ(int x, int y, int corners)
    83 uint GetPartialZ(int x, int y, int corners)
    84 {
    84 {
    85 	int z = 0;
    85 	int z = 0;
    86 
    86 
    87 	switch(corners) {
    87 	switch (corners) {
    88 	case 1:
    88 	case 1:
    89 		if (x - y >= 0)
    89 		if (x - y >= 0)
    90 			z = (x - y) >> 1;
    90 			z = (x - y) >> 1;
    91 		break;
    91 		break;
    92 
    92