~silwol/freenukum/trunk

« back to all changes in this revision

Viewing changes to src/fn_hero.c

  • Committer: Wolfgang Silbermayr
  • Date: 2009-02-19 10:53:10 UTC
  • Revision ID: wolfgang@silbermayr.at-20090219105310-luu62zj5a39jdd5e
Renaming FnTile to FnTexture.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
{
137
137
  SDL_Rect dstrect;
138
138
  int tilenr;
139
 
  FnTile * tile;
 
139
  FnTexture * tile;
140
140
 
141
141
  if (hero->hidden) {
142
142
    return;
163
163
  }
164
164
 
165
165
  tile = fn_environment_get_tile(env, tilenr);
166
 
  fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
 
166
  fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
167
167
 
168
168
  dstrect.x += dstrect.w;
169
169
  tile = fn_environment_get_tile(env, tilenr+1);
170
 
  fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
 
170
  fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
171
171
 
172
172
  dstrect.x -= dstrect.w;
173
173
  dstrect.y += dstrect.h;
174
174
  tile = fn_environment_get_tile(env, tilenr+2);
175
 
  fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
 
175
  fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
176
176
 
177
177
  dstrect.x += dstrect.w;
178
178
  tile = fn_environment_get_tile(env, tilenr+3);
179
 
  fn_tile_blit_to_sdl_surface(tile, NULL, target, &dstrect);
 
179
  fn_texture_blit_to_sdl_surface(tile, NULL, target, &dstrect);
180
180
 
181
181
  if (fn_environment_get_draw_collision_bounds(env)) {
182
182
    fn_collision_rect_draw(target, pixelsize, &(hero->position));