projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daa1d5e
)
- fixed vscroll a bit
author
Ryan Flegel
<rflegel@gmail.com>
Tue, 11 May 2004 23:25:06 +0000
(23:25 +0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Tue, 11 May 2004 23:25:06 +0000
(23:25 +0000)
SVN-Revision: 1118
src/world.cpp
patch
|
blob
|
history
diff --git
a/src/world.cpp
b/src/world.cpp
index
43b0532
..
ae262df
100644
(file)
--- a/
src/world.cpp
+++ b/
src/world.cpp
@@
-201,7
+201,7
@@
World::draw()
{
for (x = 0; x < 21; ++x)
{
- Tile::draw(32*x - fmodf(scroll_x, 32), y * 32,
+ Tile::draw(32*x - fmodf(scroll_x, 32), y * 32
- fmodf(scroll_y, 32)
,
level->bg_tiles[(int)y + (int)(scroll_y / 32)][(int)x + (int)(scroll_x / 32)]);
}
}
@@
-211,7
+211,7
@@
World::draw()
{
for (x = 0; x < 21; ++x)
{
- Tile::draw(32*x - fmodf(scroll_x, 32), y * 32,
+ Tile::draw(32*x - fmodf(scroll_x, 32), y * 32
- fmodf(scroll_y, 32)
,
level->ia_tiles[(int)y + (int)(scroll_y / 32)][(int)x + (int)(scroll_x / 32)]);
}
}