Before Width: | Height: | Size: 1006 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 979 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 972 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 631 B After Width: | Height: | Size: 644 B |
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 674 B After Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 686 B After Width: | Height: | Size: 679 B |
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 660 B |
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 577 B |
6
rc.c
|
@ -5077,8 +5077,8 @@ int movesprite(sprite_t *s) {
|
|||
tt = gettilexy(curx, cury);
|
||||
|
||||
if (tt->solid) hitwall = 1;
|
||||
if (curx < 0) hitwall = 2;
|
||||
if (cury < 0) hitwall = 3;
|
||||
if (curx <= 0) hitwall = 2;
|
||||
if (cury <= 0) hitwall = 3;
|
||||
if (curx >= LEVELW) hitwall = 4;
|
||||
if (cury >= LEVELH) hitwall = 5;
|
||||
dist++;
|
||||
|
@ -5096,7 +5096,7 @@ int movesprite(sprite_t *s) {
|
|||
tiletype_t *tt;
|
||||
if (s->timer3 == D_UP) {
|
||||
tt = gettileat(s->x, s->y - s->img->h - getspeed(s), NULL, NULL);
|
||||
if (tt->solid) {
|
||||
if (tt->solid || (s->y - s->img->h) <= TILEH) {
|
||||
// hit a wall
|
||||
s->timer1 = BS_PAUSE1;
|
||||
s->timer2 = s->timer3; // old dir
|
||||
|
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |