mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-29 13:03:43 +01:00
Fix merge issues
This commit is contained in:
parent
86bb0a9cfc
commit
9fc15af523
5 changed files with 12 additions and 12 deletions
|
@ -70,7 +70,7 @@
|
|||
</data>
|
||||
</layer>
|
||||
<objectgroup id="4" name="ExtraData">
|
||||
<object id="2" name="porte" type="PORTAL" x="95.4054" y="103.537" width="15.8058" height="15.9119">
|
||||
<object id="2" name="porte0" type="PORTAL" x="95.4054" y="103.537" width="15.8058" height="15.9119">
|
||||
<properties>
|
||||
<property name="dest" type="file" value="level0.tmx"/>
|
||||
<property name="destPortal" value="taverne"/>
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
<object id="16" name="taverne" type="PORTAL" x="128.974" y="111.676" width="14.7688" height="7.99134">
|
||||
<properties>
|
||||
<property name="dest" type="file" value="interior1_0.tmx"/>
|
||||
<property name="destPortal" value="porte"/>
|
||||
<property name="destPortal" value="porte0"/>
|
||||
</properties>
|
||||
</object>
|
||||
</objectgroup>
|
||||
|
|
|
@ -132,10 +132,9 @@ void map_render_by_layer(Game *game, int layer) {
|
|||
* y. */
|
||||
int dw = DWIDTH / T_WIDTH + 2, dh = DHEIGHT / T_HEIGHT + 1;
|
||||
/* mw and mh will contain the height and the width of the map. */
|
||||
int mw = map_level->w * T_WIDTH,
|
||||
mh = map_level->h * T_HEIGHT;
|
||||
int mw = map_level->w * T_WIDTH, mh = map_level->h * T_HEIGHT;
|
||||
/* tile contains the tile to draw. */
|
||||
unsigned short int tile;
|
||||
short int tile;
|
||||
/* The position where I start drawing */
|
||||
int sx, sy;
|
||||
/* The position of the tile in the tileset. */
|
||||
|
|
|
@ -89,8 +89,9 @@ void player_move(Game *game, Direction direction) {
|
|||
|
||||
/* Check if we should change map */
|
||||
/* Disable map change for indoor maps */
|
||||
if(!game->map_level->indoor){
|
||||
Map *target = map_get_for_tile(game,
|
||||
if(!game->map_level->indoor) {
|
||||
Map *target =
|
||||
map_get_for_tile(game,
|
||||
game->map_level->x + player->x / T_WIDTH +
|
||||
one_px_mov[direction * 2],
|
||||
game->map_level->y + player->y / T_HEIGHT +
|
||||
|
|
Loading…
Reference in a new issue