~ubuntu-branches/ubuntu/oneiric/gnome-games/oneiric

« back to all changes in this revision

Viewing changes to gnobots2/game.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-09-02 08:12:53 UTC
  • mfrom: (1.1.96)
  • Revision ID: package-import@ubuntu.com-20110902081253-egqjzsjfn0yl0i4j
Tags: 1:3.1.90-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1105
1105
static gboolean
1106
1106
player_move (gint dx, gint dy)
1107
1107
{
1108
 
  gint opx, opy;
1109
1108
  gint nx, ny;
1110
1109
 
1111
1110
  nx = player_xpos + dx;
1112
1111
  ny = player_ypos + dy;
1113
1112
 
1114
 
  opx = player_xpos;
1115
 
  opy = player_ypos;
1116
 
 
1117
1113
  if (properties_safe_moves ()) {
1118
1114
    if (!try_player_move (dx, dy)) {
1119
1115
      play_sound (SOUND_BAD);
1226
1222
static gboolean
1227
1223
safe_teleport (void)
1228
1224
{
1229
 
  gint xp, yp, ixp, iyp;
 
1225
  gint xp, yp;
1230
1226
  gint i, j;
1231
1227
 
1232
1228
  if (!safe_teleport_available ()) {
1248
1244
    }
1249
1245
  }
1250
1246
 
1251
 
  ixp = xp = rand () % GAME_WIDTH;
1252
 
  iyp = yp = rand () % GAME_HEIGHT;
 
1247
  xp = rand () % GAME_WIDTH;
 
1248
  yp = rand () % GAME_HEIGHT;
1253
1249
 
1254
1250
  while (1) {
1255
1251