Remove useless multiplications with sizeof(char) and sizeof(s_char).
Replace by literal 1 in other contexts.
This commit is contained in:
parent
8ca2468706
commit
8cd3845b08
11 changed files with 14 additions and 17 deletions
|
@ -89,11 +89,9 @@ radmap2(int owner,
|
|||
int changed = 0;
|
||||
|
||||
if (!radbuf)
|
||||
radbuf = malloc((WORLD_Y * (WORLD_X + 1)) *
|
||||
sizeof(s_char));
|
||||
radbuf = malloc(WORLD_Y * (WORLD_X + 1));
|
||||
if (!visbuf)
|
||||
visbuf = malloc((WORLD_Y * (WORLD_X + 1)) *
|
||||
sizeof(s_char));
|
||||
visbuf = malloc(WORLD_Y * (WORLD_X + 1));
|
||||
if (!rad) {
|
||||
rad = malloc(WORLD_Y * sizeof(s_char *));
|
||||
if (rad && radbuf) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue