projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20040928-1-src
[rocksndiamonds.git]
/
src
/
game_em
/
input.c
diff --git
a/src/game_em/input.c
b/src/game_em/input.c
index a6ddcfab8bd49694846bc46ec6e9bf3703dce69f..79efd2f93eeceb0379f412e81c1da31930bffcca 100644
(file)
--- a/
src/game_em/input.c
+++ b/
src/game_em/input.c
@@
-24,6
+24,9
@@
unsigned short **Draw;
static unsigned short *Index[4][HEIGHT];
static unsigned short Array[4][HEIGHT][WIDTH];
static unsigned short *Index[4][HEIGHT];
static unsigned short Array[4][HEIGHT][WIDTH];
+extern unsigned int screen_x;
+extern unsigned int screen_y;
+
void game_init_vars(void)
{
int x, y;
void game_init_vars(void)
{
int x, y;
@@
-86,6
+89,8
@@
void GameActions_EM(byte action)
readjoy(action);
readjoy(action);
+ UpdateEngineValues(screen_x / TILEX, screen_y / TILEY);
+
if (frame == 7)
{
synchro_1();
if (frame == 7)
{
synchro_1();