/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* radmap.c: Do a radar map given an x,y location, effic, and other
- *
+ *
* Known contributors to this file:
* Dave Pare, 1989
*/
int changed = 0;
if (!radbuf)
- radbuf = malloc(WORLD_Y * (WORLD_X + 1));
+ radbuf = malloc(WORLD_Y * MAPWIDTH(1));
if (!visbuf)
- visbuf = malloc(WORLD_Y * (WORLD_X + 1));
+ visbuf = malloc(WORLD_Y * MAPWIDTH(1));
if (!rad) {
rad = malloc(WORLD_Y * sizeof(char *));
if (rad && radbuf) {
rad[y][x] = (*mchr[(int)ship.shp_type].m_name) & ~0x20;
}
}
- /*
+ /*
* make the center of the display 0
* so ve et al can find it.
*/