Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/games/0verkill/files/patch-data.c
16461 views
1
--- data.c.orig 2013-11-17 11:25:40.820307151 +0400
2
+++ data.c 2013-11-17 11:27:32.743383408 +0400
3
@@ -460,7 +460,7 @@
4
my_double can_go_x(my_double old_x,my_double new_x,int yh, int yl,unsigned char *flag)
5
{
6
int x,y;
7
-
8
+ if (yh<0) yh=0;
9
if (old_x==new_x+.5)
10
{
11
if(flag)*flag=0;
12
@@ -494,7 +494,7 @@
13
my_double can_go_y(my_double old_y, my_double new_y,int xl, int xr,unsigned char *flag,unsigned char down_ladder)
14
{
15
int x,y;
16
-
17
+ if (xl<0) xl=0;
18
if (old_y==new_y){if(flag)*flag=0;return new_y;}
19
if(flag)*flag=1;
20
if (old_y<new_y)
21
22